call _clrLCD
ld hl,(256*0)+1 ;column 1...row 0
ld (_penCol),hl
ld hl,stupid_string
jp _vputs
stupid_string: .db "Stupid",0
It was good that we used hl to input our cursor
coordinates, but by using the
destroy.asm to find out
that _clrLCD returns hl,bc,de as $0000. All we have
to do after calling _clrLCD is to increment l for our
columns value and then load hl into the
_penCol address. Then we can load hl with the string
to display and print it. In the end we save two bytes. I bet
you're jumping for joy...
| call _clrLCD
inc l ;column 1...row 0
ld (_penCol),hl
ld hl,stupid_string
jp _vputs
stupid_string: .db "Stupid",0
| |