I keep getting this error in TASM. What do I do wrong? The code is meant to erase a user defined part of the screen by drawing a clearedrectangle (with a border) and then erasing the border. I know it's silly and there are prob faster ways in asm but I just want it to get to work!
Here is the code:
.nolist #include "ti83plus.inc" #define ProgStart 9D95h .list .org ProgStart -2 .db t2ByteTok, tAsmCmp posx .equ AppBackUpScreen posy .equ AppBackUpScreen+1 poss .equ AppBackUpScreen+2 post .equ AppBackUpScreen+3 LD IY, $89F0 res plotLoc, (IY+plotFlags) B_CALL(_RclAns) LD HL, $0001 B_CALL(_GetLToOp1) B_CALL(_ConvOp1) LD (posx), A INC HL B_CALL(_GetLToOp1) B_CALL(_ConvOp1) LD (posy), A INC HL B_CALL(_ConvOp1) LD (poss), A INC HL B_CALL(_ConvOp1) LD (post), A LD E, (post) ;error occurs here LD D, (poss) ;here too, same error LD L, (posy) ;here too, same error LD H, (posx) ;here too, same error B_CALL($4D8C) LD E, (post) ;here too, same error (logically) LD D, (poss) ;here too, same error LD L, (posy) ;here too, same error LD H, (posx) ;here too, same error B_CALL(_EraseRectBorder) RET .end .end
H = Top Left X
L = Top Left Y
D = Btm Right X
E = Btm Right Y
As you might see I already changed the ofset for the AppBackUpScreen adres down to 1 byte, I thought that would solve the problem but I still get the error. Anyone any ideas?
A explanation of the error can be helpful aswell (I think I know what it means but I want to know for sure)…