CPCWiki forum

General Category => Programming => Topic started by: funkheld on 18:40, 27 August 18

Title: How will the BIN of a PAS program be started by the DSK?
Post by: funkheld on 18:40, 27 August 18

How will the BIN of a PAS program be started by the DSK plaece ?


Thank you.
Greeting
Title: Re: How will the BIN of a PAS program be started by the DSK?
Post by: AMSDOS on 08:47, 28 August 18
Sorry, I'm unsure if I understand correctly what you're querying about!  :( Do you want to compile Pascal programme into Binary File? Or are you trying to load DSK image in real hardware? Files from DSK image need to be extracted (removed), before they can be used on Real Hardware, though I think there's also a program which runs on real hardware which can read the DSK file. I use the Winape emulator and in the area where Disk Images can be inserted or removed is an option called Edit Disk, click on that and a Window appears showing the files on that and you can click on the Binary file, Copy and then paste into something that you can read.

However, if I misinterpreting the question perhaps write in your own language, someone here maybe able to follow or I can Google Translate, it's not 100%, though I've found more times than not I've been able to get the basics of what's being said.
Title: Re: How will the BIN of a PAS program be started by the DSK?
Post by: funkheld on 09:34, 28 August 18
I'm so sorry.
how can you start the "test.bin"?
run "test.bin" does not work.

Thank you.
greeting
Title: Re: How will the BIN of a PAS program be started by the DSK?
Post by: arnoldemu on 09:42, 28 August 18


Quote from: funkheld on 09:34, 28 August 18
I'm so sorry.
how can you start the "test.bin"?
run "test.bin" does not work.

Thank you.
greeting
Like this:


10 MEMORY load-1
20 LOAD"test.bin",load
30 CALL start


load = load address for binary
start = execution start address for binary


You need to know this information.


You can use UTOPIA rom and |INFO command to find this. Winape may also give this information for the file in it's disc editor.





EDIT: if run"test does not work then this means test has no execution address and so can't be run like this. If it had an execution address then it would run. You could try the start address.

Title: Re: How will the BIN of a PAS program be started by the DSK?
Post by: AMSDOS on 10:58, 28 August 18
Hmmm, unsure if funkheld is referring to the "Animation Test" programme in the Hisoft Pascal thread, it's hardly what I call exciting. I made it because I made something earlier which appeared to animate the default PEN 14 when loading in data with TIN, though since discovered TIN is CAS READ CHAR (&BC80), so some slight pauses occur during loading.

So, if it's the "Animation Test" program I created, you can 'cat' the disk image 'Colour Animation & Screen Load (Hisoft Pascal 4t).dsk', to display the filenames, the file on that is called "anmtin.bin".
Powered by SMFPacks Menu Editor Mod