0 Members and 1 Guest are viewing this topic.
loop: bcall(_GetCSC) cp 15 ; check [clear] jr nz,loop ret
di ;disables interrupts since the OS will mess with port 1 ld a,$FD ;we'll be polling for keys [ENTER] up to [CLEAR] out (1),aloop: in a,(1) and $40 ;checks bit 6 which corresponds to clear. Set if not pressed, reset if pressed jr nz,loop ret
ei ;keep OS interrupts activeloop: halt ; ld a,(kbdScanCode) cp 15 jr nz,loop ret
:AsmPrgm:EF1840:FE0F:C8:18F1:C9
bcall $4018cp 0Fret zjr F1ret
Found my own way!HexCode: [Select]:AsmPrgm:EF1840:FE0F:C8:18F1:C9AssemblyCode: [Select]bcall $4018cp 0Fret zjr F1retDidn't try your code, but still, thanks for helping me out a little bit.Also, I tested it on my physical TI-84+ and Wabbitemu, and they both act the same, they both work.
Actually, jp points to a fixed location whereas jr is relative. So in this case, jr $F1 (18F1) just states that it will jump back 15 bytes from the end of the instruction.