Quick OpCode Q...
Leet emulat0r makerz....
I've seen two versions for this set of OpCodes, obviously they are undocumented....
FDCB d 40 BIT 0,(IY+d) (From Seans z80 doc)
FDCB d 40 BIT 0,(IY+d),B (This makes more sense.)
To save me digging out me hardware, could some kind soul please tell me which one is correct?
I've seen two versions for this set of OpCodes, obviously they are undocumented....
FDCB d 40 BIT 0,(IY+d) (From Seans z80 doc)
FDCB d 40 BIT 0,(IY+d),B (This makes more sense.)
To save me digging out me hardware, could some kind soul please tell me which one is correct?
Post edited by Korinel on
Comments
The instruction is to test bit 0 of (IY+d)
Dunno what the B is supposed to be for in the other instruction.
It's supposed to mean "also copy the result into register", however this doesn't happen with instruction BIT. Thus you are right, the first OpCode is correct in this case:
However the OpCode for all other operations (except BIT) prefixed with FDCB should be represented with an extra register. For instance:
The instruction above will read value from address (IY+d), set bit 0 of this value, then store result into both address (IY+d) and register B.
I agree it makes more sense than the original, but you are inventing a new notation thus no existing tools would support this.
There's another notation I saw in a few documents, that I prefer since it's more compact, more legible and also makes more sense:
Although I have no idea if any existing tools support this one either.
I like the SET 0,(IY+d)->B style of syntax too (as appears in vbSpec's wonderful source code).
I know you WoSF mods are not the sharpest tools in the box, so I'll try to remember to simplify my genius outpourings a little in future for you :p
Zilog quite clearly said at the time they could not guarantee it would work on all Z80's due to certain manufacturing methods. When you do offer us one of your genius outpourings can you please let us know as it would be a shame to miss such an important once in a lifetime experience...
Yes, they did say that. But there are quite a few out there in the field now, do you know of any for which those instructions don't work? The point is, the "undocumented" instructions are now so well documented, well understood, and well used, that any hardware that doesn't implement them properly can quite comfortably be said to be incompatible with a Z80.
Everything I write is genius... just not everyone is culturally and intellectually refined enough to appreciate it. I'm ace, me. :p
What was the original question again?
No, seriously ... go! (you girlies!)
Anyway get yer arse into #spin where we can verbally joust properly...
You only take tarties with you in there, you never invite me over, what, I'm not good enough conversation, it's been such a long time since you last gave me flowers and chocolates*, and you you keep leaving crumbs in the settee, I feel left out.
*sniffle*
:cry:
*read: Never.
And now sir is disparaging us in the first person plural... how impersonal.
:cry:
You didn't know that the pluralses of "tart" is "tarties" ?!?!?! :D
You is all just a bunches of tarties out there in IRC-land! :-P
( This is NOT chit-chat, you off-topicers. -Ed )
Well, good for you!
Keep it up, karingal keeps saying IRC's full of spotty-faced, limp-noggin, flouncy-bouncers over there anyway.