This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
Z80 & 68k Assembly =>
z80 & ez80 Assembly
Author |
Message |
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 14 Jun 2003 01:34:32 pm Post subject: |
|
|
are u sure PlotSScreen equates to $9340? try that! (btw, u dont need the double end... just .end) |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 14 Jun 2003 01:52:10 pm Post subject: |
|
|
did u try it after? try it, and it may work... |
|
Back to top |
|
|
omni
Member
Joined: 14 Jun 2003 Posts: 115
|
Posted: 14 Jun 2003 01:54:50 pm Post subject: |
|
|
sucess! It displayed 8*8 squares on the screen with no garbage on it! thanks for your help Jbirk and Adm Wiggin!
Now how do I display text on the graph screen? |
|
Back to top |
|
|
Justin W. Shattered Silence
Advanced Member
Joined: 24 May 2003 Posts: 429
|
Posted: 14 Jun 2003 02:13:20 pm Post subject: |
|
|
Well in order to display text on the graph screen you must use (penrow) and (pencol) as your coordinate inputs. Then you use the Rom Call bcall(_vputs)
ex.
ld hl,40*256+10 ;this places the text at row 10,column 40
ld (pencol),hl
ld hl,txt
bcall(_vputs)
txt:
.db "Hello",0
This may confuse you because I size optimized it. Pencol comes before PenRow in memory so by writing the column coordinate first we can take advantage of this to save some space. |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 14 Jun 2003 05:41:01 pm Post subject: |
|
|
he np! as for Justin's code, it will work like a charm, but here is an un-optomized version for the beginners (no offence meant Justin just helpin' the little guys, cause i knew i would've wanted help!) : Code: disptext:
ld a,42
ld (penRow),a; Row=42
ld a,13
ld (penCol),a; Column=13
ld hl,text; load the text
bcall(_VPutS); Display it!
ret; return...
text:
.db "Hello",0
that code will display
Hello
at Row 42, Column 13 (on the graph screen of course)! |
|
Back to top |
|
|
NETWizz Byte by bit
Bandwidth Hog
Joined: 20 May 2003 Posts: 2369
|
Posted: 15 Jun 2003 04:31:07 am Post subject: |
|
|
If you lookup pencol and penrow in ti83plus.inc, you will find that their ram locations are adjacent to each other.
What Justin is doing is loading both at the same time using one 16-bit operation! e.g. one word.
ld hl,7*256+8 would load h with 7, and load l with 8 because (&*256+ is 1800d which is %00000111, %00001000, or not surprizingly, 0708h
Last edited by Guest on 15 Jun 2003 10:29:28 pm; edited 1 time in total |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 18 Jun 2003 05:21:38 pm Post subject: |
|
|
yes, i knew that... but maybe he wasnt ready for the optomized version? u never know... |
|
Back to top |
|
|
Justin W. Shattered Silence
Advanced Member
Joined: 24 May 2003 Posts: 429
|
Posted: 18 Jun 2003 06:46:50 pm Post subject: |
|
|
Well I figure that if I can teach the optimized version it will help him out later on. Instead of having to go back and make a million corrections to his code as I did when I was learning. I still make some. |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 18 Jun 2003 06:53:13 pm Post subject: |
|
|
ah, i understand ya, use Justins, but use mine to help u understand Justin's |
|
Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page