Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
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
Jeffrey


Member


Joined: 12 Jun 2003
Posts: 212

Posted: 01 Sep 2003 08:58:08 pm    Post subject:

Ok. I am trying to get the real variable X and store it into register A. Then I want to display it. I know I can display numbers with bcall(_Disphl), but that only works for what is stored in hl. How do I get a into hl without it screwing up and thinking a is a label?

So far:

Code:
    bcall(_rclX)        ; X is in OP1
    bcall(_convop1)  

Now does that store the real X into A, or into DE or something. Well, I dunno, so if you could please just post a snippet of code that takes the real variable x, stores it into any register (i dont care, just tell me which one), and displays it.
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 01 Sep 2003 09:06:31 pm    Post subject:

ld h,0
ld l,a
Back to top
Jeffrey


Member


Joined: 12 Jun 2003
Posts: 212

Posted: 02 Sep 2003 03:49:23 pm    Post subject:

IT IS TOO CLEAR NOW!!! haha thanks
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 GMT - 5 Hours

 

Advertisement