fixed GO/JSR monitor commands

This commit is contained in:
FeralChild64 authored and FeralChild64 committed 2021-01-26 00:03:07 +01:00
1 parent aa6eaaf876
commit 33366da166
2 files changed
+6 -12

No files matched your search

+2 -2
View File
@@ -197,9 +197,9 @@ Jump_Table:
!word Mon_Compare ; C !word Mon_Compare ; C
!word Mon_Disassemble ; D !word Mon_Disassemble ; D
!word Mon_Fill ; F !word Mon_Fill ; F
!word Mon_Go ; G XXX to be finished/bugfixed !word Mon_Go ; G
!word Mon_Hunt ; H !word Mon_Hunt ; H
!word Mon_JSR ; J XXX to be finished/bugfixed !word Mon_JSR ; J
!word Mon_Memory ; M !word Mon_Memory ; M
!word Mon_Register ; R !word Mon_Register ; R
!word Mon_Transfer ; T !word Mon_Transfer ; T
+4 -10
View File
@@ -36,7 +36,7 @@ Mon_Go:
lda PCL ; use PC as jump address lda PCL ; use PC as jump address
sta Long_AC+0 sta Long_AC+0
lda PCH lda PCH
sta Long_AC+0 sta Long_AC+1
; FALLTROUGH ; FALLTROUGH
@@ -45,15 +45,10 @@ Mon_Go_JSR_comon:
lda Addr_Mode ; only first 64KB is supported as target lda Addr_Mode ; only first 64KB is supported as target
+bne Mon_Error +bne Mon_Error
lda PCH ; push target address for RTS dew Long_AC+0 ; push target address for RTS-jump
sta Long_TMP+1 lda Long_AC+1
lda PCL
sta Long_TMP+0
dew Long_TMP+0
lda Long_TMP+1
pha pha
lda Long_TMP+0 lda Long_AC+0
pha pha
; Prepare registers ; Prepare registers
@@ -76,7 +71,6 @@ Mon_Go_JSR_comon:
Mon_JSR_ret: Mon_JSR_ret:
; Retrieve registers ; Retrieve registers
; XXX address!
pha pha
php php