[TI ASM] Moving a bit of text around on screen
Moderator: MaxCoderz Staff
-
- New Member
- Posts: 65
- Joined: Sun 03 Apr, 2005 7:55 pm
- Location: The seventh circle of Hell.
- Contact:
[TI ASM] Moving a bit of text around on screen
I cant seem to figure out how to move a bit of text around. If someone could give me some code on moving an X with the arrow keys and clears the screen, I'd much appreciate it.
Truly great madness cannot be achieved without significant intelligence.
http://www.xanga.com/jakku_kun, rants by me.
http://www.xanga.com/jakku_kun, rants by me.
-
- Extreme Poster
- Posts: 479
- Joined: Fri 17 Dec, 2004 11:09 pm
- Contact:
<edit>I thought it was a dumb question in asm already, never thought of the possibility that he meant Basic
</edit>
You should be able to fill in the gaps and get the errors out, if any (haven't tested this of course), or else I suggest you start working through some tutorials...
![Very Happy :D](./images/smilies/grayscale_happy.gif)
Code: Select all
ScreenUpdate:
bcall(_clrlcdfull) or another bcall that clears the homescreen without resetting currow en curcol
ld hl,str
bcall(_puts)
Loop:
get keypress - don't know the code for that by heart :)
cp leftkey
jp z,left
cp rightkey
jp z,right
etc...
jp Loop
leftkey:
ld a,(curcol)
dec a
ld (curcol),a
jp ScreenUpdate
rightkey:
ld a,(curcol)
inc a
ld (curcol),a
jp ScreenUpdate
etc...
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
-
- New Member
- Posts: 65
- Joined: Sun 03 Apr, 2005 7:55 pm
- Location: The seventh circle of Hell.
- Contact:
Heh, im extremely new to ASM, but yeah, i should be able to fix any errors. If not, i'll post here again. Thanks for the help!
Truly great madness cannot be achieved without significant intelligence.
http://www.xanga.com/jakku_kun, rants by me.
http://www.xanga.com/jakku_kun, rants by me.
You're welcome ![Smile :)](./images/smilies/grayscale_smile.gif)
![Smile :)](./images/smilies/grayscale_smile.gif)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
-
- Extreme Poster
- Posts: 479
- Joined: Fri 17 Dec, 2004 11:09 pm
- Contact:
Yea, If youve read enough of 83pa28d (up to the text section) you should have enough knowledge to write this yourself (well it depends how fast you want the keypress detection to beTimendus wrote:<edit>I thought it was a dumb question in asm already, never thought of the possibility that he meant Basic</edit>
![Very Happy :D](./images/smilies/grayscale_happy.gif)
-
- New Member
- Posts: 65
- Joined: Sun 03 Apr, 2005 7:55 pm
- Location: The seventh circle of Hell.
- Contact:
Well, I did say i am extremely new to ASM. Thanks again for the help.
Truly great madness cannot be achieved without significant intelligence.
http://www.xanga.com/jakku_kun, rants by me.
http://www.xanga.com/jakku_kun, rants by me.
Nothing wrong with learning from example, I think most people of "my generation" (those who started with calc assembly over four years ago) learned it that way... In the good old days when ASMGuru was God ![Wink ;)](./images/smilies/grayscale_wink.gif)
But I very much agree that you gain a much better understanding of what you are actually doing in your software by reading through a few (good) tutorials. And that makes for better code.
![Wink ;)](./images/smilies/grayscale_wink.gif)
But I very much agree that you gain a much better understanding of what you are actually doing in your software by reading through a few (good) tutorials. And that makes for better code.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS