Difference between revisions of "Programming:Cross Development"
(New page: == General == There are various Z80 assemblers which you can use to develop games for the CPC. I always test on an emulator first then when the program is complete I test it on a real CPC...) |
(added web links, more cross assemblers, snapshot method) |
||
Line 6: | Line 6: | ||
Once you have your binary file you have two choices depending on if the game will be for cassette or disc. | Once you have your binary file you have two choices depending on if the game will be for cassette or disc. | ||
− | Cassette | + | === Cassette === |
− | + | * Use 2CDT to add the files to a Cassette Image File (CDT) | |
− | + | * Then you can run the program on the emulator the same way as you would run it on a real CPC | |
− | Disc | + | === Disc === |
− | + | * Use CPCFS or CPCXFS to put the binary files into a Disk Image file (DSK) | |
− | + | * Then you can run the program on the emulator the same way as you would run it on a real CPC | |
+ | === Snapshot === | ||
− | + | The fastest way of testing your code on an emulator is by creating a snapshot. Use CPCSnapshot to insert your assembled code into a snapshot file. Then just load the snapshot file into the emulator. Windows users may also try WinAPE's integrated assembler which assembles the code directly into the emulated CPC's memory. | |
− | Pasmo | + | |
+ | === Cross Assemblers === | ||
+ | |||
+ | *[[Pasmo]] | ||
+ | *ZMac | ||
+ | *Kio's Z80 assembler | ||
+ | *[[WinApe]]'s built in assembler | ||
== Testing on a real CPC == | == Testing on a real CPC == | ||
− | == For cassette == | + | === For cassette === |
- Use Tape2WAV to convert the Cassette Image file (CDT) into a WAV file. | - Use Tape2WAV to convert the Cassette Image file (CDT) into a WAV file. | ||
Line 34: | Line 41: | ||
- Wait for the program to load... | - Wait for the program to load... | ||
− | == For disc == | + | === For disc === |
If your CPC has a 3.5" disc drive then the easiest method is to transfer the DSK to a 3.5" disc using the PC. | If your CPC has a 3.5" disc drive then the easiest method is to transfer the DSK to a 3.5" disc using the PC. | ||
Line 41: | Line 48: | ||
- Put the disc into your CPC's 3.5" disc drive and type | - Put the disc into your CPC's 3.5" disc drive and type | ||
- |B: RUN "<gamename> | - |B: RUN "<gamename> | ||
+ | |||
+ | == Web links == | ||
+ | |||
+ | * [http://ramlaid.free.fr/Amstrad/English/crossDev.htm CPC Cross Development tools by Ramlaid] |
Revision as of 03:05, 16 October 2007
Contents
General
There are various Z80 assemblers which you can use to develop games for the CPC. I always test on an emulator first then when the program is complete I test it on a real CPC.
Once you have your binary file you have two choices depending on if the game will be for cassette or disc.
Cassette
- Use 2CDT to add the files to a Cassette Image File (CDT)
- Then you can run the program on the emulator the same way as you would run it on a real CPC
Disc
- Use CPCFS or CPCXFS to put the binary files into a Disk Image file (DSK)
- Then you can run the program on the emulator the same way as you would run it on a real CPC
Snapshot
The fastest way of testing your code on an emulator is by creating a snapshot. Use CPCSnapshot to insert your assembled code into a snapshot file. Then just load the snapshot file into the emulator. Windows users may also try WinAPE's integrated assembler which assembles the code directly into the emulated CPC's memory.
Cross Assemblers
Testing on a real CPC
For cassette
- Use Tape2WAV to convert the Cassette Image file (CDT) into a WAV file. - Connect your CPC (CPC664 and CPC6128 have a cassette input) to the Line-Out output of your PC soundcard - On the CPC type: |TAPE:RUN" - Start your WAV player - Set the volume to maximum - play the WAV file - Wait for the program to load...
For disc
If your CPC has a 3.5" disc drive then the easiest method is to transfer the DSK to a 3.5" disc using the PC.
- Then use CPCDiskXP to write the DSK to a 3.5" disc drive - Put the disc into your CPC's 3.5" disc drive and type - |B: RUN "<gamename>