fix mbox refresh
This commit is contained in:
parent
ebcb266638
commit
883686d4a2
1 changed files with 4 additions and 4 deletions
|
@ -449,14 +449,14 @@ JMP2r
|
||||||
#00 ,&chr STR
|
#00 ,&chr STR
|
||||||
STHk
|
STHk
|
||||||
|
|
||||||
|
( clear the previous selection with null bytes )
|
||||||
#ff #00 &clear_mbox EQUk ,&ready JCN
|
#ff #00 &clear_mbox EQUk ,&ready JCN
|
||||||
#00 #00 ROTk ;selected_mbox ADD2 #0000 SWP2 STA
|
DUP #00 SWP ;selected_mbox ADD2 #00 ROT ROT STA
|
||||||
INC ,&clear_mbox JMP &ready POP2
|
INC ,&clear_mbox JMP &ready POP2
|
||||||
|
|
||||||
|
( get position of the current selection )
|
||||||
( bytes ) LDZ2 #0000 &while EQU2k ,&end JCN
|
( bytes ) LDZ2 #0000 &while EQU2k ,&end JCN
|
||||||
STHkr LB_SELECT_IDX LDZ2 ,&idx LDR2 EQU2 ,&write_str JCN
|
STHkr LB_SELECT_IDX LDZ2 ,&idx LDR2 EQU2 ,&write_str JCN
|
||||||
;debug_mbox_search debug
|
|
||||||
DUP2 print
|
|
||||||
DUP2 STHkr LB_DATA LDZ2 ADD2 LDA #0a EQU ,&inc JCN
|
DUP2 STHkr LB_DATA LDZ2 ADD2 LDA #0a EQU ,&inc JCN
|
||||||
INC2 ,&while JMP
|
INC2 ,&while JMP
|
||||||
&inc ,&idx LDR2 INC2 ,&idx STR2 INC2 ,&while JMP
|
&inc ,&idx LDR2 INC2 ,&idx STR2 INC2 ,&while JMP
|
||||||
|
@ -464,13 +464,13 @@ JMP2r
|
||||||
&idx $2
|
&idx $2
|
||||||
&chr $1
|
&chr $1
|
||||||
|
|
||||||
|
( copy the current selection to the buffer )
|
||||||
&write_str STHkr LB_DATA LDZ2 ADD2
|
&write_str STHkr LB_DATA LDZ2 ADD2
|
||||||
&loop LDAk #0a EQU ,&end JCN
|
&loop LDAk #0a EQU ,&end JCN
|
||||||
LDAk [ ;selected_mbox #00 ,&chr LDR ADD2 ] STA
|
LDAk [ ;selected_mbox #00 ,&chr LDR ADD2 ] STA
|
||||||
,&chr LDR INC ,&chr STR INC2 ,&loop JMP
|
,&chr LDR INC ,&chr STR INC2 ,&loop JMP
|
||||||
&end
|
&end
|
||||||
|
|
||||||
;selected_mbox debug
|
|
||||||
POP2 POP2
|
POP2 POP2
|
||||||
POPr
|
POPr
|
||||||
#01 .Console/write DEO
|
#01 .Console/write DEO
|
||||||
|
|
Loading…
Reference in a new issue