Tutorial #5
2-18-99
Cool looking text!
Today you will be able to make that cool text that has a black backround and white text! Its pretty easy to do and you should be able to understand it fairly easy. The only commands you don't know that are in my program are the "set and res" commands. All "set" does is Sets a certain bit and "res" Resets it. Got it? Now for the code!
...Code we use in every ASM Program...
call _clrLCDFull ;Clears the screen
set textInverse,(iy+textflags) ;Inverses the text
ld hl,0000h ;Row 0 Colume 0
ld (CURCOL),hl ;As you can see this is for the homescreen
ld hl,ourtext ;Loads the text string
call _puts ;Puts it on the homescreen
res textInverse,(iy+textflags) ;Resets the Text Inverse
ret ;Returns to what it was doing
ourtext: ;Our Variable
.db "It WoRkEd!",0 ;Our text
.end ;Ends the program
END ;Needed for TASM
The "textInverse" command inverses the text, and the iy+textflags thing means something, but you don't need to know that right now... All I can tell you is, its a MODE FLAG... Mode Flags will come in another tutorial.
Any Questions? E-mail me!
(KSA)Tekken (uncool3@juno.com)