removed some debug code
This commit is contained in:
1 parent
5d4605d6ba
commit
a9c56a8afe
2 files changed
+15
-75
No files matched your search
+14
-16
@@ -9,10 +9,6 @@
|
|||||||
Mon_Call:
|
Mon_Call:
|
||||||
; *******
|
; *******
|
||||||
|
|
||||||
jsr PRIMM
|
|
||||||
!pet $0D, "* warning * port not finished yet", $0D, $0D, $00
|
|
||||||
|
|
||||||
|
|
||||||
JSR Print_Commands
|
JSR Print_Commands
|
||||||
|
|
||||||
; set default addressing mode to 64K
|
; set default addressing mode to 64K
|
||||||
@@ -478,7 +474,18 @@ Mon_Assemble:
|
|||||||
|
|
||||||
lda #$0D
|
lda #$0D
|
||||||
jsr DBG_print_char
|
jsr DBG_print_char
|
||||||
jsr DBG_print_Buf_Index
|
lda #'-'
|
||||||
|
jsr DBG_print_char
|
||||||
|
ldx #$FF
|
||||||
|
@xx:
|
||||||
|
inx
|
||||||
|
lda BUF,x
|
||||||
|
beq @x1
|
||||||
|
jsr DBG_print_char
|
||||||
|
bra @xx
|
||||||
|
@x1:
|
||||||
|
lda #$0D
|
||||||
|
jsr DBG_print_char
|
||||||
|
|
||||||
LDA #$00
|
LDA #$00
|
||||||
STA Addr_Mode
|
STA Addr_Mode
|
||||||
@@ -583,16 +590,12 @@ Mon_Assemble:
|
|||||||
|
|
||||||
; read operand
|
; read operand
|
||||||
|
|
||||||
; XXX start debugging from here
|
@labc LDA #0
|
||||||
|
|
||||||
@labc jsr DBG_print_Buf_Index
|
|
||||||
LDA #0
|
|
||||||
@labd STA Mode_Flags
|
@labd STA Mode_Flags
|
||||||
LDA #0
|
LDA #0
|
||||||
STA Addr_Mode
|
STA Addr_Mode
|
||||||
JSR Get_Val_To_LAC
|
JSR Get_Val_To_LAC
|
||||||
BEQ @labg ; no operand
|
BEQ @labg ; no operand
|
||||||
jsr DBG_print_long_ac
|
|
||||||
LDA Addr_Mode
|
LDA Addr_Mode
|
||||||
LBNE Mon_Error ; -> overflow
|
LBNE Mon_Error ; -> overflow
|
||||||
LDY #2 ; Y=2 word operand
|
LDY #2 ; Y=2 word operand
|
||||||
@@ -609,7 +612,6 @@ Mon_Assemble:
|
|||||||
@labg
|
@labg
|
||||||
@lpnop JSR Get_Char ; get delimiter
|
@lpnop JSR Get_Char ; get delimiter
|
||||||
LBEQ @adjust ; end of operand
|
LBEQ @adjust ; end of operand
|
||||||
jsr DBG_print_char
|
|
||||||
CMP #' '
|
CMP #' '
|
||||||
BEQ @lpnop
|
BEQ @lpnop
|
||||||
|
|
||||||
@@ -848,11 +850,7 @@ Mon_Assemble:
|
|||||||
@store1 LDA Op_Code
|
@store1 LDA Op_Code
|
||||||
JSR Put_To_Memory_LPC
|
JSR Put_To_Memory_LPC
|
||||||
|
|
||||||
@print pha
|
@print JSR PRIMM
|
||||||
lda #$0D
|
|
||||||
jsr DBG_print_char
|
|
||||||
pla
|
|
||||||
JSR PRIMM
|
|
||||||
!pet 13,$91,"a ", KEY_ESC, 'q', 0
|
!pet 13,$91,"a ", KEY_ESC, 'q', 0
|
||||||
JSR Print_Code
|
JSR Print_Code
|
||||||
INC Op_Size
|
INC Op_Size
|
||||||
|
|||||||
+1
-59
@@ -3,30 +3,7 @@
|
|||||||
; Helper code for debugging the monitor
|
; Helper code for debugging the monitor
|
||||||
;
|
;
|
||||||
|
|
||||||
; XXX disable this code once the monitor integration is complete
|
; XXX remove this code once the monitor integration is complete
|
||||||
|
|
||||||
DBG_print_Buf_Index:
|
|
||||||
|
|
||||||
php
|
|
||||||
pha
|
|
||||||
phx
|
|
||||||
phy
|
|
||||||
phz
|
|
||||||
|
|
||||||
lda #':'
|
|
||||||
jsr CHROUT
|
|
||||||
|
|
||||||
lda Buf_Index
|
|
||||||
jsr Print_Hex
|
|
||||||
|
|
||||||
plz
|
|
||||||
ply
|
|
||||||
plx
|
|
||||||
pla
|
|
||||||
plp
|
|
||||||
|
|
||||||
rts
|
|
||||||
|
|
||||||
|
|
||||||
DBG_print_char:
|
DBG_print_char:
|
||||||
|
|
||||||
@@ -45,38 +22,3 @@ DBG_print_char:
|
|||||||
plp
|
plp
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
DBG_print_long_ac:
|
|
||||||
|
|
||||||
php
|
|
||||||
pha
|
|
||||||
phx
|
|
||||||
phy
|
|
||||||
phz
|
|
||||||
|
|
||||||
lda #'*'
|
|
||||||
jsr CHROUT
|
|
||||||
|
|
||||||
lda Dig_Cnt
|
|
||||||
jsr Print_Hex
|
|
||||||
|
|
||||||
lda #'*'
|
|
||||||
jsr CHROUT
|
|
||||||
|
|
||||||
lda Long_AC+3
|
|
||||||
jsr Print_Hex
|
|
||||||
lda Long_AC+2
|
|
||||||
jsr Print_Hex
|
|
||||||
lda Long_AC+1
|
|
||||||
jsr Print_Hex
|
|
||||||
lda Long_AC+0
|
|
||||||
jsr Print_Hex
|
|
||||||
|
|
||||||
plz
|
|
||||||
ply
|
|
||||||
plx
|
|
||||||
pla
|
|
||||||
plp
|
|
||||||
|
|
||||||
rts
|
|
||||||
Reference in new issue
Block a user