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


Joined: 11 Jun 2003
Posts: 169

Posted: 02 Sep 2003 07:13:15 am    Post subject:

0086 9E11 ld (curcol),h
Zbasprgm.Z80 line 0086: unrecognized argument. ((curcol),h)
0087 9E11 ld (currow),l
Zbasprgm.Z80 line 0087: unrecognized argument. ((currow),l)

Thats what TASM kepps tellin me whats the problem?
"currow" and "curcol" are equated in "ti83plus.inc" so why does this happen?
Back to top


Joined: 07 Jun 2003
Posts: 133

Posted: 02 Sep 2003 01:33:11 pm    Post subject:

Just do
ld (currow), hl

That will store L in CurRow and H in CurCol because CurCol is just after CurRow in the RAM, and the processor first stores L, and then H.

In fact, you are not allowed to do what you tried to do. However, you can do something like
ld a, h
ld (curcol), a

But then, there is no utility to use HL.

I'm not sure of what I said, but it is something like this. Make several tests, you'll find it from yourself Wink
Back to top


Joined: 23 Jun 2003
Posts: 103

Posted: 02 Sep 2003 01:46:49 pm    Post subject:

I don't know. mabey a space after the comma? Just use Tyraniek's way, because it is faster, and takes less code, as long as you understand it. Kind of like 'XOR A' instead of 'LD A, 0'
Back to top

Active Member

Joined: 30 Jun 2003
Posts: 720

Posted: 02 Sep 2003 03:15:35 pm    Post subject:

Z80 - data moving instructions - this one sums up all the possible LD operand combinations in a table.
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