Coder Social home page Coder Social logo

sndpl / skeleton-sdcc-msx Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 5.0 29 KB

Skeleton C (sdcc) project for MSX binaries

Makefile 6.77% C++ 3.64% C 18.29% Assembly 70.27% Tcl 0.93% Batchfile 0.11%
msx sdcc hex2bin skeleton assembly rom z80 z80asm c asm

skeleton-sdcc-msx's Introduction

Skeleton C project for MSX

Will create a "hello world" 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)

Thanks

skeleton-sdcc-msx's People

Contributors

sndpl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

skeleton-sdcc-msx's Issues

Possibly missing `bin` directory creation on `Makefile`

First make run output:

mv: rename main.bin to bin/main.com: No such file or directory
make: *** [build] Error 1

After creating a bin directory it's clean:

Binary file start = 00000100
Records start     = 00000100
Highest address   = 0000037C
Pad Byte          = FF
Done.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.