Text Adv. Code for cc64/128k Apple2enh doesn't work!

2 posts / 0 new
Last post
Offline
Last seen: 9 hours 20 min ago
Joined: Nov 12 2022 - 16:50
Posts: 200
Text Adv. Code for cc64/128k Apple2enh doesn't work!
AttachmentSize
Plain text icon AdvSkel65 PLAYER.C.txt3.47 KB
Binary Data apple2enh-system_aux_prodosi.cfg3.39 KB
File loadmain.c1013 bytes

Hi!  I have some code for cc65 around which one can build a text adventure.  It currently works for the C64, the 64k Plus4, the C128 and the 8-bit Atari series.  I've been working on an Apple2enh port.  So far, it works for a 64k Apple2enh but not a 128k Apple2enh.  :(  It uses the A2SimpleIO, ProDOSi and, for the 128k version, AuxMemApple libraries.  When a stub is being loaded, the system gives me the monitor, and the location of the PC is $02C0.  This area is defined by the config files but is unused.  The 64k version works, though.  I am attaching parts of the main module, the stub-loading module and the config file.

Offline
Last seen: 9 hours 20 min ago
Joined: Nov 12 2022 - 16:50
Posts: 200
Never mind: I found the bug. 

Never mind: I found the bug.  I was specifying the wrong output file for cl65's output.  Then, some room descriptions and item names weren't being displayed.  One thing that was causing this was an error with referencing the printtok() function: the code was substituting printtok with prints.  Another bug was that I was trying to copy some data from Main memory instead of Aux memory.  I fixed both bugs, and now it works.  :)

Log in or register to post comments