monitor memory handling improvements
This commit is contained in:
1 parent
2efd0d2566
commit
0e1118ebe3
3 files changed
+12
-9
No files matched your search
+4
-4
@@ -93,9 +93,9 @@ Mon_Register:
|
|||||||
DEY
|
DEY
|
||||||
BNE @loopc
|
BNE @loopc
|
||||||
|
|
||||||
; **
|
; ***
|
||||||
Main
|
Main:
|
||||||
; **
|
; ***
|
||||||
|
|
||||||
JSR Print_CR
|
JSR Print_CR
|
||||||
LDX #0
|
LDX #0
|
||||||
@@ -218,7 +218,7 @@ Mon_Exit:
|
|||||||
JMP (X_Vector)
|
JMP (X_Vector)
|
||||||
|
|
||||||
; ********
|
; ********
|
||||||
LAC_To_PC: ; XXX to be adapted, get rid of 'bcs'!
|
LAC_To_PC: ; XXX to be adapted
|
||||||
; ********
|
; ********
|
||||||
|
|
||||||
; called from Mon_Set_Register, Mon_Go and Mon_JSR
|
; called from Mon_Set_Register, Mon_Go and Mon_JSR
|
||||||
|
|||||||
@@ -64,4 +64,4 @@ Mon_Memory:
|
|||||||
|
|
||||||
@exit:
|
@exit:
|
||||||
|
|
||||||
jmp Main
|
jmp Main
|
||||||
@@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
Get_From_Memory:
|
Get_From_Memory:
|
||||||
|
|
||||||
; XXX consider using long mode for addresses below $8000 always
|
|
||||||
|
|
||||||
phx
|
phx
|
||||||
phy
|
phy
|
||||||
phz
|
phz
|
||||||
@@ -44,7 +42,7 @@ Get_From_Memory:
|
|||||||
dec
|
dec
|
||||||
dec
|
dec
|
||||||
cmp #$8E
|
cmp #$8E
|
||||||
bcs @read ; branch if no need to handle shadow memory (0, 1, or above $8F)
|
bcs @read_64k ; branch if no need to handle shadow memory (0, 1, or above $8F)
|
||||||
@2:
|
@2:
|
||||||
sta Long_TMP+0
|
sta Long_TMP+0
|
||||||
bra @read_shadow
|
bra @read_shadow
|
||||||
@@ -63,6 +61,11 @@ Get_From_Memory:
|
|||||||
bcs @read_flat
|
bcs @read_flat
|
||||||
bra @2
|
bra @2
|
||||||
|
|
||||||
|
@read_64k:
|
||||||
|
|
||||||
|
bbr7 Long_TMP+1, @read_flat ; below $8000 we do not want to retrieve MAP/EOM banked memory
|
||||||
|
bra @read
|
||||||
|
|
||||||
@read_shadow:
|
@read_shadow:
|
||||||
|
|
||||||
lda #MEMCONF_SHADOW_BZP_1
|
lda #MEMCONF_SHADOW_BZP_1
|
||||||
@@ -72,7 +75,7 @@ Get_From_Memory:
|
|||||||
lda #MEMCONF_SHADOW_BZP_3
|
lda #MEMCONF_SHADOW_BZP_3
|
||||||
sta Long_TMP+3
|
sta Long_TMP+3
|
||||||
|
|
||||||
@read_flat:
|
@read_flat: ; XXX read via helper in KERNAL_0 segment
|
||||||
+nop
|
+nop
|
||||||
@read:
|
@read:
|
||||||
lda (Long_TMP),Z
|
lda (Long_TMP),Z
|
||||||
|
|||||||
Reference in new issue
Block a user