Famicom Z-machine

A place where you can keep others updated about your NES-related projects through screenshots, videos or information in general.

Moderator: Moderators

Post Reply
zzo38
Posts: 1096
Joined: Mon Feb 07, 2011 12:46 pm

Famicom Z-machine

Post by zzo38 »

I have been making some more progress on a Z-machine interpreter for the Famicom.

I have posted it on the wiki at User:Zzo38/Famicom_Z-machine to allow others to review the work-in-progress, as well as to use it for whatever other purpose you want to use it for.

I continue working on it over time, and will then update the wiki after making several changes to my local copy, too.

You are free to make a comment of it, please.
(Free Hero Mesh - FOSS puzzle game engine)
lidnariq
Site Admin
Posts: 11643
Joined: Sun Apr 13, 2008 11:12 am

Re: Famicom Z-machine

Post by lidnariq »

You might find this huge monolithic C-64 based Z-machine interpreter of interest:
http://www.linusakesson.net/software/zeugma/

But I looked and it's a single huge asm file that's assembled and glued onto the Z-machine image, so it seems unlikely it's particularly useful.
zzo38
Posts: 1096
Joined: Mon Feb 07, 2011 12:46 pm

Re: Famicom Z-machine

Post by zzo38 »

I have seen that C64 based Z-machine interpreter, after I started working on my own, actually.

However, mine isn't for the Commodore 64, so decimal mode isn't used, and the game is stored in 128K ROM and 64K RAM (the other 128K ROM and 2K RAM is used for the interpreter). Also, mine is for Z-machine versions 1, 2, and 3, rather than 4, 5, and 8. The interpreter is also optimized at compile-time for the specific game in use.

I have added a table of opcode implementation status.
(Free Hero Mesh - FOSS puzzle game engine)
zzo38
Posts: 1096
Joined: Mon Feb 07, 2011 12:46 pm

Re: Famicom Z-machine

Post by zzo38 »

I have made various improvements, however there are still a many things missing, such as MUL, DIV, MOD, and RANDOM.
(Free Hero Mesh - FOSS puzzle game engine)
DoctorMikeReddy
Posts: 28
Joined: Fri Aug 06, 2010 4:52 am

Re: Famicom Z-machine

Post by DoctorMikeReddy »

Possibly a long shot given the length of time since anyone posted here, but can anyone advise me what tools are needed to compile the
Famicom-Z code available at viewtopic.php?p=29291 and https://www.nesdev.org/wiki/User:Zzo38/ ... _Z-machine
I have tried with various tools, but cannot get it to recognise macros
Thank you
User avatar
dougeff
Posts: 3080
Joined: Fri May 08, 2015 7:17 pm

Re: Famicom Z-machine

Post by dougeff »

That project was never completed.

Not even close to completed.
nesdoug.com -- blog/tutorial on programming for the NES
DoctorMikeReddy
Posts: 28
Joined: Fri Aug 06, 2010 4:52 am

Re: Famicom Z-machine

Post by DoctorMikeReddy »

I’m aware. However, I’d still like to be helped; there are a couple of other projects by the same user from the same period - such as Hangman, which was complete, given there is a NES rom file - that use MagicKit, but there isn’t much documentation
Post Reply