Truly shocking code (z80 asm)
Moderator: MaxCoderz Staff
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
- calc84maniac
- Regular Member
- Posts: 112
- Joined: Wed 18 Oct, 2006 7:34 pm
- Location: The ex-planet Pluto
- Contact:
Who's saying you said it?King Harold wrote:I never said one should use XOR A, it zero's A!.
My diet consists of nails, code-stealers, and HP fans.
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
No one, but I thought you talked about XORing A?
It looked to me like you were saying I was defending XOR A.. though I could be mistaken. XOR A has it's uses, as do most instructions (the z80 is a RISC processor after all..) and can be used to reset the carry, but often you might want to preserve the contents of A..
(why am I talking about that?)
I'll go for that even tradeoff (but with NEG you have 1 in 255 change that the carry won't be set, when A was zero..)
It looked to me like you were saying I was defending XOR A.. though I could be mistaken. XOR A has it's uses, as do most instructions (the z80 is a RISC processor after all..) and can be used to reset the carry, but often you might want to preserve the contents of A..
(why am I talking about that?)
I'll go for that even tradeoff (but with NEG you have 1 in 255 change that the carry won't be set, when A was zero..)