Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.54 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.54 KB

Skeleton C project for MSX (SDCC)

Will create a simple program running on MSX Z80 platform and emulated hardware. Following packages are required:

(1) To compile hex2bin on OSX, download the source. Extract the archive and delete the hex2bin, mot2bin and hex2bin.1 files (they are for Linux). Then go to the directory on the command line and rebuild the binaries for OS X by typing: make To do a system-wide install: make install MAN_DIR=/usr/local/share/man/man1

Compiling

make all      ;Compile and build
make compile  ;Just compile the project
make build    ;Build the final file (ROM|COM)
make emulator ;Launch the final file with openMSX

Check the makefile to select the correct startup file (ROM/COM). Current supported startup list:

  • ROM 16kb (init: 0x4000)
  • ROM 16kb (init: 0x8000)
  • ROM 32Kb (init: 0x4000)
  • MSX-DOS COM file (simple main)
  • MSX-DOS COM file (main with arguments)

The "main with arguments" runtime header has been fixed to support stardard C argument ordering. The application name is still not passed in to the application in the first argument. This will have to be fixed. Stay tuned.

Thanks