This is a very condensed quick start guide to allow you to cross-develop software for the Amstrad CPC (or an emulator) using a debian build system.
10 install debian 20 REM get an emulator. MAME works quite well. You can also use caprice32. (but s.a. the CPCWiki on emulators.) 30 sudo apt install mame mame-tools dos2unix 40 get the system roms: $ mame -listroms cpc464 ROMs required for driver "cpc464". Name Size Checksum cpc464.rom 32768 CRC(40852f25) SHA1(56d39c463da60968d93e58b4ba0e675829412a20) $ mame -listroms cpc664 ROMs required for driver "cpc664". Name Size Checksum cpc664.rom 32768 CRC(9ab5a036) SHA1(073a7665527b5bd8a148747a3947dbd3328682c8) cpcados.rom 16384 CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb) $ mame -listroms cpc6128 ROMs required for driver "cpc6128". Name Size Checksum cpc6128.rom 32768 CRC(9e827fe1) SHA1(5977adbad3f7c1e0e082cd02fe76a700d9860c30) cpcados.rom 16384 CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb) Maybe take a look here. You put them into the directory: /usr/local/share/games/mame/roms/cpc464 50 build iDSK from https://github.com/cpcsdk/idsk. 60 edit your first BASIC file $ echo '10 print "hello"' > hello.bas don't forget to convert line endings! $ unix2dos hello.bas 70 create disk with hello.bas $ iDSK -n hello.dsk -i hello.bas -t 0 80 run the emulator: $ mame cpc664 -flop1 hello.dsk -skip_gameinfo \ -ab '\n\nrun "hello\n' 90 To get out of the emulator press the INSERT key and then the ESC key. (if this doesn't work you are likely not on debian - goto 10 ;-) or try F1 or Scroll Lock then ESC ).
Zeichensalat script that tries to do the above steps on a debian-like system.
#!/bin/sh
zs 'z