[cc65] MemBank128: Problem with clrscr() translation?

From: Joseph Rose <rose.joseph121yahoo.com>
Date: 2012-02-29 18:36:09
I'm continuing to work on MemBank128.  I did not lose everything!  :D  I still had Bank 1 and 15 code and a few files that were conveted from them for testing.  However, I ran into a problem with the clrscr() routine: during the function call, the 40-column screen's character data seems to be corrupted.  I think that the kernal routine's writing to the VIC-II's control addresses because it doesn't seem to be affecting the rest of the program otherwise.  The new routine is supposed to run in the LOWCODE segment from Bank 0, switch to Bank 15 to call the kernal function and switch back to Bank 0 before exiting.  Here's the code for the function call:
----------------------
_clrscr:
 lda #$00
 sta $FF00
 jsr CLRSCR
 ;lda #$3F
 sta $FF01
 rts
----------------------
Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Feb 29 18:36:18 2012

This archive was generated by hypermail 2.1.8 : 2012-02-29 18:36:21 CET