Changed the solution for the PLOT problem with old -02 kernals to that used
for the VIC20: PLOT is not an kernal entry but a library function that will do the right stuff. This makes it work with other stuff that calls PLOT, too. git-svn-id: svn://svn.cc65.org/cc65/trunk@4249 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -84,20 +84,12 @@ L11: ora #$40
|
||||
|
||||
|
||||
|
||||
; Set cursor position, calculate RAM pointers. Because kernal -02 doesn't
|
||||
; update the color RAM pointer, we have to do that manually here.
|
||||
; Set cursor position, calculate RAM pointers.
|
||||
|
||||
plot: ldy CURS_X
|
||||
ldx CURS_Y
|
||||
clc
|
||||
jsr PLOT ; Set the new cursor
|
||||
lda SCREEN_PTR ; Low byte of color RAM ...
|
||||
sta CRAM_PTR ; ... is same as text screen pointer
|
||||
lda SCREEN_PTR+1 ; While high byte of color RAM
|
||||
and #$03
|
||||
ora #$D8 ; ... needs to be adjusted
|
||||
sta CRAM_PTR+1
|
||||
rts
|
||||
jmp PLOT ; Set the new cursor
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user