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

From: Joseph Rose <rose.joseph121yahoo.com>
Date: 2012-03-02 18:21:18
Never mind; I found the bug: I used a routine that I didn't convet yet.  :(



________________________________
From: Joseph Rose <rose.joseph12@yahoo.com>
To: cc65 mailing list <cc65@musoftware.de> 
Sent: Wednesday, February 29, 2012 12:36 PM
Subject: [cc65] MemBank128: Problem with clrscr() translation?


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 Fri Mar 2 18:21:32 2012

This archive was generated by hypermail 2.1.8 : 2012-03-02 18:21:37 CET