moved RAMTAS to Mega65 extra ROM, as a proof of concept
This commit is contained in:
1 parent
73f05a13c8
commit
435ff6bbc2
6 files changed
+27
-32
No files matched your search
+3
-8
@@ -12,20 +12,15 @@
|
||||
// Labels for jumps
|
||||
|
||||
|
||||
.label KERNAL_1__TESTROUTINE = $4000
|
||||
.label KERNAL_1__RAMTAS = $4000
|
||||
|
||||
|
||||
#elif
|
||||
#else
|
||||
|
||||
// Jumptable (OpenROMs private!)
|
||||
|
||||
|
||||
jmp TESTROUTINE
|
||||
|
||||
|
||||
TESTROUTINE:
|
||||
|
||||
rts
|
||||
jmp RAMTAS
|
||||
|
||||
|
||||
#endif
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
map_NORMAL:
|
||||
|
||||
php
|
||||
pha
|
||||
phx
|
||||
phy
|
||||
@@ -33,12 +34,14 @@ map_end:
|
||||
ply
|
||||
plx
|
||||
pla
|
||||
plp
|
||||
|
||||
rts
|
||||
|
||||
|
||||
map_KERNAL_1:
|
||||
|
||||
php
|
||||
pha
|
||||
phx
|
||||
phy
|
||||
@@ -1,4 +1,7 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# M65 KERNAL_0 #TAKE
|
||||
// #LAYOUT# M65 KERNAL_1 #TAKE-FLOAT
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Official Kernal routine, described in:
|
||||
@@ -11,6 +14,14 @@
|
||||
|
||||
RAMTAS:
|
||||
|
||||
#if (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
|
||||
jsr map_KERNAL_1
|
||||
jsr KERNAL_1__RAMTAS
|
||||
jmp map_NORMAL
|
||||
|
||||
#else
|
||||
|
||||
// C64 Programmers Reference guide p291:
|
||||
// Clear $0000-$0101, $0200-$03ff
|
||||
// PGS: $0000, $0001 are CPU IO ports, so should not get written to
|
||||
@@ -83,5 +94,4 @@ ramtas_32k:
|
||||
ldy #$80
|
||||
bne !- // branch always
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
@@ -12,12 +12,6 @@
|
||||
|
||||
IOINIT:
|
||||
|
||||
// XXX make something useful with this
|
||||
//
|
||||
// jsr map_KERNAL_1
|
||||
// jsr KERNAL_1__TESTROUTINE
|
||||
// jsr map_NORMAL
|
||||
|
||||
//
|
||||
// First initialize the CPU port, to make sure we have correct memory map
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user