Jump to content
IGNORED

Modifying Roklan PAC-MAN source code for fujinet hi-scores. $5969 alignment hell, HELP!


Recommended Posts

Am currently trying to patch the Roklan Pac-Man source code, to add FujiNet Hi-score capability.

 

I attempted to add a single JMP inside PAC1 to go to my code after VGMEND finishes, and am being hit by alignment bugs from hell:

mads -d:VERSION=1 PACMAN.ASM -o:PACMAN-ORIGINAL.xex
 ORG $5969
PAC3.ASM (119) ERROR: Can't fill from higher ($596C) to lower memory location ($5969)
make: *** [Makefile:13: pacman1] Error 2

 

Anyone have some insight? @JAC!?

Link to comment
Share on other sites

The addresses have to be continously counting up. In mads that is activated with "OPT F+" (fill mode).
You cannot just place the ORG anywere, you have to adapt the source code in the right line that corresponds to the address.
Other than that it's difficult without having the source...

Link to comment
Share on other sites

:) There's a reason I mentioned you.

 

;************************************
;*                                  *
;*            PAC-MAN               *
;*                                  *
;*   Developed for Atari Inc. by    *
;*  Roklan Corp. This Information   *
;*  is confidential and is not for  *
;*  sale or distribution.           *
;*                                  *
;* Software written by Joe Hellesen *
;*                                  *
;*            10/03/82              *
;*                                  *
;*          DISK VERSION            *
;*                                  *
;*          REVISION 3.0            *
;*                                  *
;************************************
;

; Adapted version for MADS, 2018-07-28 JAC!

 

A bit of some creative jumping later, and I got something that built and displayed, but now I realize that PAC-MAN uses a DLI after the second row of text, and switches to a dedicated multicolor charset. :D:)

 

584834556_Screenshotfrom2022-10-1322-18-36.thumb.png.d82d8b9d6008f2f70f83a22fffec1296.png

guess I need to find a way to cram a bit more into the DLI, so I can switch to text mode in the middle there :D:)

 

-Thom

Edited by tschak909
  • Like 2
Link to comment
Share on other sites

Would it be an option to replace the code at VGMEND with a JSR to your code (placed in a safe memory space) that first contains the instruction at VGMEND you replaced with the JSR, followed by whatever code you need and an RTS? That's a method I used when patching Shamus to create Shamus+. (Obviously does not work with code that is very time critical.)

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...