added indirect JSR for 65CE02

This commit is contained in:
FeralChild64 committed 2020-01-27 22:11:03 +01:00
1 parent e410bc0900
commit 170a0245ca
4 files changed
+16 -10

No files matched your search

+8
View File
@@ -99,6 +99,14 @@
.byte $E3, arg
}
// additional addressing modes
.pseudocommand jsr_ind addr
{
.var arg = addr.getValue()
.byte $22, mod(arg, $100), floor(arg / $100)
}
#endif
@@ -3,7 +3,7 @@
// #LAYOUT# * * #IGNORE
//
// Definitions for communication with Mega65 segment KERNAL_1
// Definitions for communication with Mega65 segment KERNAL_1 from KERNAL_0
//
@@ -11,16 +11,14 @@
// Labels for jumps
.label KERNAL_1__RAMTAS = $4000
.label VK1__RAMTAS = $4000
#else
// Jumptable (OpenROMs private!)
// Vector table (OpenROMs private!)
jmp RAMTAS
.word RAMTAS
#endif
+3 -3
View File
@@ -16,9 +16,9 @@ RAMTAS:
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
jsr map_KERNAL_1
jsr KERNAL_1__RAMTAS
jmp map_NORMAL
jsr map_KERNAL_1
jsr_ind VK1__RAMTAS
jmp map_NORMAL
#else
@@ -120,6 +120,6 @@ chrout_screen_jumptable:
.word chrout_screen_DEL
.word chrout_screen_RETURN
.if (mod(*, $2) == 0) { nop } // make sure routine size is always the same, needed by build system
.if (mod(*, $2) == 1) { nop } // make sure routine size is always the same, needed by build system
#endif