Skip to content

Test for an msx 2 side scrolling platform game in screen 8 developed as megarom in SDCC

Notifications You must be signed in to change notification settings

artrag/SDCC-msx2-side-scrolling-platform-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to compile?

Dependencies:

  • sdcc 4.2

Compile command: make

Megarom

Konami with SCC 512kb.

Pages 0&1 are fixed, never changes. Pages 2&3 always change together.

How to add source file

Add compile line to Makefile: cd build && sdcc $(CCFLAGS) --codeseg BANK2 --code-size $(BANKn_SIZE) -c ../src/module.c

To assign the module to a different page change BANK2 to the desired megarom page.

The pages go in pairs. So each module can have up to 0x4000 bytes. Except the first page that can have up to 0x3f00 (it contains the megarom header).

Banked methods

Mark as __banked the functions that are callable from another pages. Call bankable functions has a small performance impact.

Non-banked functions are only callable inside the same module. It doesn't has any performance impact.

Credits

Thanks to

https://github.com/samsaga2/sdcc_megarom

About

Test for an msx 2 side scrolling platform game in screen 8 developed as megarom in SDCC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published