NABU PAC-MAN Source Code discussion thread

Stories, pictures, and artifacts from the O.G. NABU Rockstar, Leo
User avatar
LeoBinkowski
Posts: 146
Joined: Tue Mar 28, 2023 4:23 pm
Location: nabu.ca
Contact:

NABU PAC-MAN Source Code discussion thread

Post by LeoBinkowski »

This is the official NABU PAC-MAN Source code discussion thread.

The Youtube video describing the code is here:

The Source code is here: https://github.com/LeoBinkowski/NABU/nabu-pacman

Fire a full spread of questions!
User avatar
LeoBinkowski
Posts: 146
Joined: Tue Mar 28, 2023 4:23 pm
Location: nabu.ca
Contact:

Re: NABU PAC-MAN Source Code discussion thread

Post by LeoBinkowski »

icesabre.jpg
User avatar
productiondave
Posts: 117
Joined: Tue Mar 28, 2023 10:01 pm

Re: NABU PAC-MAN Source Code discussion thread

Post by productiondave »

Okay, I'll go first.

This compiles on CP/M and results in a com file. Does it have to be converted into a nabu file?

How much of the operating system calls are used? I'm assuming they are not present in cloudcpm for example.

I'm quite interested in the task manager stuff. It would be neat to see how that's done in assembly. I can see how you're integrating with it, but I wanna peek under the hood. 🙂

I wonder what it would take to port pacman over to the Z80-Retro and if I should even bother trying. That OS dependency is the tricky but I think.
User avatar
LeoBinkowski
Posts: 146
Joined: Tue Mar 28, 2023 4:23 pm
Location: nabu.ca
Contact:

Re: NABU PAC-MAN Source Code discussion thread

Post by LeoBinkowski »

You can use the CABUILD.COM from the z80 example to make a NABU loadable PAK file.

CABUILD PACMAN.COM 110

is what I used. See the example in the version 7 video:



The z80 example:

https://github.com/LeoBinkowski/NABU/tr ... 80-example
User avatar
LeoBinkowski
Posts: 146
Joined: Tue Mar 28, 2023 4:23 pm
Location: nabu.ca
Contact:

Re: NABU PAC-MAN Source Code discussion thread

Post by LeoBinkowski »

Can't go without posting this either:
paciaintyourman.jpg
User avatar
productiondave
Posts: 117
Joined: Tue Mar 28, 2023 10:01 pm

Re: NABU PAC-MAN Source Code discussion thread

Post by productiondave »

Yeah, but I was wondering if there is a way to build the game so it runs on cpm.
User avatar
LeoBinkowski
Posts: 146
Joined: Tue Mar 28, 2023 4:23 pm
Location: nabu.ca
Contact:

Re: NABU PAC-MAN Source Code discussion thread

Post by LeoBinkowski »

Sadly, I only know the NABU IOS building way.

We used to be able to test CP/M COM files directly using MCP 1.8, which was a version of CP/M that included the IOS hooks. After we changed to used NABU PCs and CP/M, we would only test them exclusively using CABUILD, because that made it an exact representation of software that ran on the cycle.

After documenting all this crap, I'll take a peek a how to build and debug stuff in new environments.
User avatar
LeoBinkowski
Posts: 146
Joined: Tue Mar 28, 2023 4:23 pm
Location: nabu.ca
Contact:

Re: NABU PAC-MAN Source Code discussion thread

Post by LeoBinkowski »

I took your suggestion on the youtube post, Dave:
thePacMandalorian.jpg
User avatar
productiondave
Posts: 117
Joined: Tue Mar 28, 2023 10:01 pm

Re: NABU PAC-MAN Source Code discussion thread

Post by productiondave »

Nice. I love this one.
User avatar
DJ Sures
Posts: 345
Joined: Tue Mar 28, 2023 8:36 pm
Location: nabu.ca
Contact:

Re: NABU PAC-MAN Source Code discussion thread

Post by DJ Sures »

Lol!!!! I almost spit out my beer. That’s hilarious
Post Reply