The zero flag cannot be dropped because it would be impractical if not impossible to do any kind of equality comparison or bit testing. CMP, AND, and BIT become a whole lot less useful.
The carry flag is essential for doing comparisons. How would you write "if foo < bar" without doing a CMP ...
Search found 5 matches
- Wed May 24, 2017 10:51 am
- Forum: General Discussions
- Topic: Flags: N, V, Z, C - what are they worth to you?
- Replies: 31
- Views: 4492
- Tue May 23, 2017 11:59 pm
- Forum: General Discussions
- Topic: SERIOUS BUG in WDCTools installer
- Replies: 1
- Views: 859
Re: SERIOUS BUG in WDCTools installer
WDC has already responded to me and pulled the download until they fix it. Kudos for taking the issue seriously!
- Tue May 23, 2017 10:02 pm
- Forum: General Discussions
- Topic: SERIOUS BUG in WDCTools installer
- Replies: 1
- Views: 859
SERIOUS BUG in WDCTools installer
I'm posting this as a heads-up to anyone who might happen to be thinking of installing WDCTools. Long story short, its installer deleted my PATH variable without prior warning. Here is the bug report I'm sending to WDC:
The WDCTools installer (WDCTOOLS.exe) has a serious bug. It completely ...
The WDCTools installer (WDCTOOLS.exe) has a serious bug. It completely ...
- Fri Jan 06, 2012 5:18 am
- Forum: General Discussions
- Topic: Behavior of rel. branch instructions with integer operands
- Replies: 5
- Views: 1590
- Thu Jan 05, 2012 2:50 am
- Forum: General Discussions
- Topic: Behavior of rel. branch instructions with integer operands
- Replies: 5
- Views: 1590
Behavior of rel. branch instructions with integer operands
I'm developing a 65816 assembler, and I've noticed an oddity with at least some other assemblers. Suppose we have this code:
bra $12
...what does it mean? Is the $12 relative or absolute? To me it makes sense that $12 is taken as an absolute address and so, assuming a PC of 0 (for the sake of ...
bra $12
...what does it mean? Is the $12 relative or absolute? To me it makes sense that $12 is taken as an absolute address and so, assuming a PC of 0 (for the sake of ...