[colorforth] Understanding the x18 instruction jump table
- Subject: [colorforth] Understanding the x18 instruction jump table
- From: John Drake <jmdrake_98@xxxxxxxxx>
- Date: Tue, 13 Jun 2006 14:52:08 -0700 (PDT)
I was looking at the instruction decoding code for
the x18 simulator and I noticed something a little
odd.
: inst ( n ) 1 slot +! 1f and jump jmp jmp call call
jz jz jns jns @b @+ n @a !b !+ nul !a -x 2*x 2/x +*
orx andx nul +x r@ a@ t@ s@ r! a!x nul t!
Why are the opcodes jmp, call and jns repeated?
Side note, I'm working on a c18 disassembler. It's
really simple. It just shows the opcode of the
last executed instruction on the screen below
the data stack. In fact, I've got it "working"
but I'm not confident in my results due to
my uncertainty about the duplicated opcodes.
Regards,
John M. Drake
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com