Understanding the x18 instruction jump table

John Drake <[email protected]>
Newsgroups gmane.comp.lang.forth.colorforth
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.