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
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 20 Nov 2008 03:30:27 pm    Post subject:

When I do a load command how are the flags altered?

Specifically I am loading to a with indirection...

Code:
ld a,(queueX)

I want to know if this will have updated the p/m so that I can test if it is negative. Or would I have to first do add a,0 before the flags are changed?
Back to top
benryves


Active Member


Joined: 23 Feb 2006
Posts: 564

Posted: 20 Nov 2008 03:37:54 pm    Post subject:

The only loads that affect the flags are LD A,I and LD A,R. You could use OR A to modify the sign flag after the load.

Last edited by Guest on 20 Nov 2008 03:38:18 pm; edited 1 time in total
Back to top
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 20 Nov 2008 03:44:14 pm    Post subject:

Thank You
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