OT: Any assembler peeps out there?

guddler

Busting vectors like it's 1982!
vacBacker
Feedback
10 (100%)
Credits
4,054CR
[ukvac] OT: Any assembler peeps out there?
Very OT i know, BUT can anyone tell me what the hex is for the two-byte
command JMP (unconditional) - if there is a two byte command version!

x86 Z80 assembler....

Thanks,
Guddler.

---------------------------------------------------
Martin White

Coming soon...
http://www.guddler.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 

John Bennett

Senior Member
vacBacker
Feedback
10 (100%)
Credits
4,975CR
Re: [ukvac] OT: Any assembler peeps out there?
On Thu, Jul 05, 2001 at 11:48:10AM +0100, Guddler wrote:
> Very OT i know, BUT can anyone tell me what the hex is for the two-byte
> command JMP (unconditional) - if there is a two byte command version!
>
> x86 Z80 assembler....

x86 and Z80 don't use the same opcodes, you know ...

Assuming you mean JP, then the unconditional version on the Z80 is 0xC3
followed by two bytes for the absolute address to jump to. Those bytes
are in little-endian order.

If you mean JR for a relative jump, then you want 0x18 followed by the one
byte signed offset to jump to.

<plug>
There's an (almost) complete Z80 instruction set listing on my website,
http://www.cantrell.org.uk/david/tech/cpc/cpc-firmware/z80index.pl
</plug>

--
David Cantrell | david@cantrell.org.uk | http://www.cantrell.org.uk/david

If a job's worth doing, it's worth dieing for



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

DATA Imported from archives: originally posted by David Cantrell (david@cantrell.org.uk)
 

dz1n3

Friday Ranter
Credits
37CR
Re: [ukvac] OT: Any assembler peeps out there?
theres several but....

JP nn (PC <- nn)

"11000011 xxxxxxxx xxxxxxxx"
"C3 xx xx"
 
Top