3 ms·
Interesting question. Spec says 'a is always handled by the processor before b, and is the lower six bits.' For Non-basic opcodes, 'a' is actually the opcode,
by Anderkent 15y ago
Interesting question.
Spec says
'a is always handled by the processor before b, and is the lower six bits.'
For Non-basic opcodes, 'a' is actually the opcode, and b is the argument. This would imply JSR is evaluated before POP.
What we want JSR POP to mean, of course, is 'jump to the last item on the stack, then push PC+1 to stack'. So I would guess that's how it actually works, and the spec needs a revision.
- uvdiv 15y agoI think that line is specific to the basic instructions only (if it weren't, "...and is the lower six bits" would be false). "For Non-basic opcodes, 'a' is actually the opcode" Actually it's the single argument -- 'o' is the opcode.