fix for PLOT routine

This commit is contained in:
FeralChild64 committed 2020-01-11 10:18:28 +01:00
1 parent d71dcebf3a
commit d11d28925d
5 files changed
+24 -7

No files matched your search

@@ -1,9 +1,11 @@
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_1)
// XXX this is for testing only
sed
sed
rts
#endif // ROM layout
+1 -2
View File
@@ -120,8 +120,7 @@ chrout_screen_literal:
chrout_screen_calc_lptr_done:
jsr screen_calculate_PNT_USER
jsr screen_calculate_PNTR_LNMX
jsr screen_calculate_pointers
// FALLTROUGH
+1 -1
View File
@@ -24,7 +24,7 @@ plot_set:
sty PNTR
stx TBLX
jsr screen_calculate_PNT_USER
jsr screen_calculate_pointers
// FALLTROUGH to save one byte on RTS
@@ -0,0 +1,19 @@
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
//
// Set pointer (PNT) to current screen line , described in:
//
// - [CM64] Computes Mapping the Commodore 64 - page 216
// - http://sta.c64.org/cbm64scrfunc.html
//
// XXX find out what the original ROM really recalculate
screen_calculate_pointers:
jsr screen_calculate_PNT_USER
jmp screen_calculate_PNTR_LNMX
#endif // ROM layout
@@ -1,10 +1,7 @@
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
//
// Set pointer (PNT) to current screen line , described in:
//
// - [CM64] Computes Mapping the Commodore 64 - page 216
// - http://sta.c64.org/cbm64scrfunc.html
// Set pointers PNT and USER to current screen line
//