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.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
Tyraniek


Member


Joined: 07 Jun 2003
Posts: 133

Posted: 20 Jun 2003 04:36:09 am    Post subject:

Hi !
Today, my question is : "How do you write a large text on the 8th line ?".
I add that I'd like to write this with this flag enabled : set appTextsave,(iy+appFlags)

I wrote this :

Code:
   B_CALL(_homeup)
   ld   hl, 0800h
   ld   (curcol), hl
   ld   hl, label
   B_CALL(_puts)


But it doesn't work and writes on the FIRST line !!! o_O Wacko
How would you do to write on the 8th line with this mode (which permits to write large text on the "graph screen") ? Do I have to enable the following flag : "textscrolled" ? If so, How could I do it ?

Please answer ; it is really important !!!!
Thx

Edit : Oh, and please give me something less "heavy" than :

Code:
   B_CALL(_homeup)
   B_CALL(_newline)
   B_CALL(_newline)
   B_CALL(_newline)
   B_CALL(_newline)
   B_CALL(_newline)
   B_CALL(_newline)
   B_CALL(_newline)

Wink thx


Last edited by Guest on 20 Jun 2003 06:38:32 am; edited 1 time in total
Back to top
Justin W.
Shattered Silence


Advanced Member


Joined: 24 May 2003
Posts: 429

Posted: 20 Jun 2003 08:34:50 am    Post subject:

Sure simple enough.

bcall(_homeup) places the cursor at (0,0) on the homescreen so not entirely useful. Unless you don't want to specify coordinates and only write in the first line.

Second of all you are loading the 16 bit register into the wrong area. CurRow comes before Curcol in memory.

Third. You must switch the order of the coordinates. Column first then row. As the will be reversed when they are loaded into the ram area.

Fourth. The TIOS only writes to the 7th row(this is the last line) coordinates in asm are 0-7 for rows and 0-15 for columns on the homescreen.

ld hl,0007h
ld (CurRow),hl
ld hl,text
bcall(_puts)
ret

text:
.db "Last Line",0
Back to top
Tyraniek


Member


Joined: 07 Jun 2003
Posts: 133

Posted: 20 Jun 2003 09:04:47 am    Post subject:

OK, it works, thank you Wink
For the second and the third points, I think I mistook the registers for pencol/penrow.
Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement