Skip to content

algodesigner/skeleton-sdcc-msx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Skeleton C (sdcc) project for MSX binaries

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 70.5%
  • C 22.0%
  • Makefile 6.5%
  • Other 1.0%