[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opcode Instruction Question



> Opcode Instruction Question
> 
>     I know that 65816 microprocessor always has 256 opcode instructions
> while Intel microprocessor has more than 256 opcode instructions.  For
> example, 65816 uses equal '=' for JMP, but Intel uses '=', '>', '<', '>=',
> and '<=' for JMP.  It seems that it is not necessary to have extra JMP
> instructions.

it's a matter naming convention.

If we were to look at things from the intel perspective, the 816
actually has 4 jmp instructions:
bra -- jump to +- 128 byte offset
brl -- jump to +/- 32767 byte offset
jmp -- jump to absolute 16 bit address
jml -- jump to absolute 24 bit address.

Are all those extra JMP instructions "necessary"?

The intel JMPs do the above sort of thing, as well as jump to an
address specified in a register.