$380 is unecessary, PTGET returns with the Y-Reg and Accumulator

pionting to the data bytes of the specified variable. This will be
precisely where we want the data in the FAC to be moved to. The only
correction to be made is in regard to the fact that MOVMF requires that
Y and X registers hold the destination address, this solve by use TAX.
This commit is contained in:
rigreco 2015-02-26 22:47:45 +01:00
parent 01c44757b9
commit b009bf41ab
2 changed files with 5 additions and 5 deletions

View File

@ -148,8 +148,8 @@ CONT2 lda FP1+2 ; M1 3 Byte --> 9F FAC
;brk
***************************
*
ldy #$03 ;Hi Byte MEM
lda #$80 ;Lo Byte MEM
;ldy #$03 ;Hi Byte MEM
;lda #$80 ;Lo Byte MEM
*
jsr CHKCOM
jsr PTRGET

View File

@ -133,11 +133,11 @@ CONT2 lda FP1+2 ; M1 3 Byte --> 9F FAC
;brk
***************************
*
ldy #$03 ;Hi Byte MEM
lda #$80 ;Lo Byte MEM
;ldy #$03 ;Hi Byte MEM
;lda #$80 ;Lo Byte MEM
*
jsr CHKCOM
jsr PTRGET
jsr PTRGET ; Return the Y and A pointing to the specific variabile
tax
jsr MOVMF ;FAC->VARIABLE Y (5 Bytes Packed)