fix for PLOT routine
This commit is contained in:
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)
|
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_1)
|
||||||
|
|
||||||
|
|
||||||
// XXX this is for testing only
|
// XXX this is for testing only
|
||||||
|
|
||||||
sed
|
sed
|
||||||
sed
|
sed
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
#endif // ROM layout
|
#endif // ROM layout
|
||||||
@@ -120,8 +120,7 @@ chrout_screen_literal:
|
|||||||
|
|
||||||
chrout_screen_calc_lptr_done:
|
chrout_screen_calc_lptr_done:
|
||||||
|
|
||||||
jsr screen_calculate_PNT_USER
|
jsr screen_calculate_pointers
|
||||||
jsr screen_calculate_PNTR_LNMX
|
|
||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ plot_set:
|
|||||||
sty PNTR
|
sty PNTR
|
||||||
stx TBLX
|
stx TBLX
|
||||||
|
|
||||||
jsr screen_calculate_PNT_USER
|
jsr screen_calculate_pointers
|
||||||
|
|
||||||
// FALLTROUGH to save one byte on RTS
|
// 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
-4
@@ -1,10 +1,7 @@
|
|||||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set pointer (PNT) to current screen line , described in:
|
// Set pointers PNT and USER to current screen line
|
||||||
//
|
|
||||||
// - [CM64] Computes Mapping the Commodore 64 - page 216
|
|
||||||
// - http://sta.c64.org/cbm64scrfunc.html
|
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user