preparation for calling routines from mapped memory

This commit is contained in:
FeralChild64 committed 2020-01-14 18:06:24 +01:00
1 parent 9061a8d0fc
commit 30238362c1
3 files changed
+72 -6

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
//
// ROM mapping routines for Mega65
//
map_NORMAL:
pha
phx
phy
phz
lda #$00
tax
tay
taz
// FALLTROUGH
map_end:
map
eom
plz
ply
plx
pla
rts
map_KERNAL_1:
pha
phx
phy
phz
lda #$00
tay
taz
ldx #$42 // XXX map 8KB from 0x20000 to 0x4000 - somehow does not seem to work
bne map_end
#endif // ROM layout