- ez80 Drawing on Homescreen Help
- 10 Dec 2018 09:15:48 pm
- Last edited by Bruce_The_Shark42 on 10 Dec 2018 10:19:12 pm; edited 2 times in total
Hey, I'm just asking for some help with some ez80 asm programming.
Basically what I want the program to do is take in two values, one in the X variable, and the other in the Y variable, so I can use it as a subroutine in some other programs. It loads X into curCol, Y into curRow, then displays a character at that location.
I've done something, but it doesn't work, which I'm thinking is because I don't fully understand how _RclX and _RclY work:
call _homeup
call _ClrScrnFull
call _RclX
pop hl
ld (curCol), hl
call _RclY
pop hl
ld (curRow), hl
ld hl,Character
call _PutS
ret
Character:
.db $DD,0
Basically what I want the program to do is take in two values, one in the X variable, and the other in the Y variable, so I can use it as a subroutine in some other programs. It loads X into curCol, Y into curRow, then displays a character at that location.
I've done something, but it doesn't work, which I'm thinking is because I don't fully understand how _RclX and _RclY work:
call _homeup
call _ClrScrnFull
call _RclX
pop hl
ld (curCol), hl
call _RclY
pop hl
ld (curRow), hl
ld hl,Character
call _PutS
ret
Character:
.db $DD,0