Tutorial #3
2-17-99
Displaying Text on the Home Screen
You actually will use the graph screen more than the home screen but I figured you should know this too. Study the following code, I will give an explaination after it.
...Code that start off in every ASM program...
call _clrLCDFull ;Clears the screen of course
ld hl,0005 ;Loads 5 into hl
ld (CURROW),hl ;Loads the 5 from hl into CURROW the home screen ploting thing
ld hl,hometext ;Loads the text variable into hl
call _puts ;Puts the text on screen
ret ;Returns to what it was doing
hometext: ;The variable
.db "It Worked!",0 ;Text we used
.end ;Ends the program
END ;Needed for TASM
Ok the following commands you don't know are the "CURROW" and the _puts All the CURROW is, is for the HomeScreen instead of Graph Screen and _puts is for putting stuff on the homescreen instead of the GraphScreen.
Need more help e-mail me!
(KSA)Tekken (uncool3@juno.com)