As the title states, I'm using the _PutS syscall to print a string to the screen (code is at the bottom of this post).
Whenever I attempt to do this, I get a couple of random characters, and _DispHL works perfectly fine.
Code:
Whenever I attempt to do this, I get a couple of random characters, and _DispHL works perfectly fine.
Code:
; This is ALL REQUIRED
; DON'T TOUCH IT
; {
.nolist
#include "includes\ti84pce.inc"
#define ProgStart $9d95
.list
.assume ADL=1
.org ProgStart-2
.db tExtTok,tAsm84CeCmp
; }
; Bit of setup, turn off run indicator and clear screen
;call _RunIndicOff
call _ClrScrnFull
ld HL, 0
ld (curRow), HL
ld HL, welcomeText
call _PutS
; This works now, don't F*CKING TOUCH IT
call _GetKey
; Subtracting 142 in decimal gets us the number value of the key pressed
SUB 142
ld H, 0
ld L, A
call _DispHL
ret
; Variables
welcomeText:
.db "Test", 0
.end
.end