ported BSMON bugfix from upstream
This commit is contained in:
1 parent
b921134377
commit
81e45fd7ac
1 file changed
+12
-7
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
Get_Addr_To_LAC: ; XXX !!! seems to work incorrectly for decimal
|
Get_Addr_To_LAC:
|
||||||
|
|
||||||
phx
|
phx
|
||||||
phy
|
phy
|
||||||
@@ -13,7 +13,7 @@ Get_Addr_To_LAC: ; XXX !!! seems to work incorrectly for decimal
|
|||||||
sta Long_AC+3
|
sta Long_AC+3
|
||||||
|
|
||||||
jsr Get_Glyph ; get 1st. character
|
jsr Get_Glyph ; get 1st. character
|
||||||
beq @exit
|
+beq @exit
|
||||||
|
|
||||||
ldy #$03 ; here we allow '$', '+', '&', and '%' prefixes
|
ldy #$03 ; here we allow '$', '+', '&', and '%' prefixes
|
||||||
|
|
||||||
@@ -54,16 +54,21 @@ Get_Addr_To_LAC: ; XXX !!! seems to work incorrectly for decimal
|
|||||||
cpy #$01
|
cpy #$01
|
||||||
bne @laba ; branch if not decimal
|
bne @laba ; branch if not decimal
|
||||||
|
|
||||||
ldx #$03 ; decimal - push Long_AC * 2
|
ldx #$03 ; decimal - push Long_AC
|
||||||
clc
|
|
||||||
|
|
||||||
@push2x:
|
@push_long_AC:
|
||||||
|
|
||||||
lda Long_AC,X
|
lda Long_AC,X
|
||||||
rol
|
|
||||||
pha
|
pha
|
||||||
dex
|
dex
|
||||||
bpl @push2x
|
bpl @push_long_AC
|
||||||
|
|
||||||
|
tsx ; double pushed value
|
||||||
|
asl STACK+1,X
|
||||||
|
rol STACK+2,X
|
||||||
|
rol STACK+3,X
|
||||||
|
rol STACK+4,X
|
||||||
|
+bcs Mon_Error ; branch if overflow
|
||||||
|
|
||||||
@laba:
|
@laba:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user