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
|
||||
BNE @loopc
|
||||
|
||||
; **
|
||||
Main
|
||||
; **
|
||||
; ***
|
||||
Main:
|
||||
; ***
|
||||
|
||||
JSR Print_CR
|
||||
LDX #0
|
||||
@@ -218,7 +218,7 @@ Mon_Exit:
|
||||
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
|
||||
|
||||
@@ -64,4 +64,4 @@ Mon_Memory:
|
||||
|
||||
@exit:
|
||||
|
||||
jmp Main
|
||||
jmp Main
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
Get_From_Memory:
|
||||
|
||||
; XXX consider using long mode for addresses below $8000 always
|
||||
|
||||
phx
|
||||
phy
|
||||
phz
|
||||
@@ -44,7 +42,7 @@ Get_From_Memory:
|
||||
dec
|
||||
dec
|
||||
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:
|
||||
sta Long_TMP+0
|
||||
bra @read_shadow
|
||||
@@ -63,6 +61,11 @@ Get_From_Memory:
|
||||
bcs @read_flat
|
||||
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:
|
||||
|
||||
lda #MEMCONF_SHADOW_BZP_1
|
||||
@@ -72,7 +75,7 @@ Get_From_Memory:
|
||||
lda #MEMCONF_SHADOW_BZP_3
|
||||
sta Long_TMP+3
|
||||
|
||||
@read_flat:
|
||||
@read_flat: ; XXX read via helper in KERNAL_0 segment
|
||||
+nop
|
||||
@read:
|
||||
lda (Long_TMP),Z
|
||||
|
||||
Reference in new issue
Block a user