added indirect JSR for 65CE02
This commit is contained in:
1 parent
e410bc0900
commit
170a0245ca
4 files changed
+16
-10
No files matched your search
@@ -99,6 +99,14 @@
|
|||||||
.byte $E3, arg
|
.byte $E3, arg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// additional addressing modes
|
||||||
|
|
||||||
|
.pseudocommand jsr_ind addr
|
||||||
|
{
|
||||||
|
.var arg = addr.getValue()
|
||||||
|
.byte $22, mod(arg, $100), floor(arg / $100)
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+4
-6
@@ -3,7 +3,7 @@
|
|||||||
// #LAYOUT# * * #IGNORE
|
// #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
|
// Labels for jumps
|
||||||
|
|
||||||
|
.label VK1__RAMTAS = $4000
|
||||||
.label KERNAL_1__RAMTAS = $4000
|
|
||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// Jumptable (OpenROMs private!)
|
// Vector table (OpenROMs private!)
|
||||||
|
|
||||||
|
.word RAMTAS
|
||||||
jmp RAMTAS
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -16,9 +16,9 @@ RAMTAS:
|
|||||||
|
|
||||||
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||||
|
|
||||||
jsr map_KERNAL_1
|
jsr map_KERNAL_1
|
||||||
jsr KERNAL_1__RAMTAS
|
jsr_ind VK1__RAMTAS
|
||||||
jmp map_NORMAL
|
jmp map_NORMAL
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,6 @@ chrout_screen_jumptable:
|
|||||||
.word chrout_screen_DEL
|
.word chrout_screen_DEL
|
||||||
.word chrout_screen_RETURN
|
.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
|
#endif
|
||||||
Reference in new issue
Block a user