MSX rom

Post Reply
Timmy
Well known member
Posts: 268
Joined: Sat Mar 10, 2012 4:18 pm

MSX rom

Post by Timmy »

On this special april day I thought I'm posting this MSX ROM file I made using z88dk. It's basically a port from the spectrum version, ported in a day.

http://www.sendspace.com/file/ec6pqg

I've basically created a new target in order to build it. That was a while ago and to be honest I forgot which files I've modified. :lol:

It's an ugly workaround, and my source code is also full of redirections:

Code: Select all

extern uchar joydir   @ 49152;
extern uchar joypress @ 49153;
extern int score      @ 49154;
extern int hiscore    @ 49156;
But I thought I still want to share it with you. We can always talk about this later after the major revisions on z88dk has been done. :)
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

lol well it is fitting with the 2048 craze going around. That and flappy bird. Flappy bird I don't understand though, 2048 works on me like an annoying compulsion.
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

By the way, there are going to be two parallel clibs in the next release, one using the existing clib and libraries and the other using the new clib with direct support for sdcc. By direct I mean the C interface is written for sdcc so all functions in the new clib should work. If the C interface for a particular function is not explicitly written for sdcc we are relying on zcc to smooth the calling between sdcc and z88dk's library, which may or may not work depending on the function.

The parallel implementation means there are two source directories, two include directories and two targets for each machine. When I say two targets I mean one for the current clib and three for the new clib. The three are sccz80 (for z88dk's native compiler, with fastcall and callee linkage), sdcc_ix (for sdcc, only C linkage and right to left parameter order, library uses IX which causes some faffing as sdcc also uses ix), sdcc_iy (for sdcc, only C linkage and right to left parameter order, library uses iy). There is also an option to build an assembler-only version of the library.

The way things will work is almost settled. You can see how I'm creating targets for the new clib in:

http://z88dk.cvs.sourceforge.net/viewvc ... NT/target/

The new targets are "zx_dev" "zx_devsx" "zx_devsy", the latter two being for sdcc and their configs are in the usual place:

http://z88dk.cvs.sourceforge.net/viewvc ... ib/config/

In the end I will probably merge those three targets into a single "zx_dev" which will mean compile line options will choose to use sdcc and library selection will be automatic.
Post Reply