Jon De Schrijder wrote:
> > - Use 8 bit JR when displacement fits in 8 bits, otherwise use 16 bit JR
>that's just the big problem: the displacement can be dependent on the
>fact if you will be using 8bit or 16bit JR! The snake that bites its
>tail...
That's one of the reasons I used a multi-pass design in tniASM :) It just
keeps processing the code until everything checks out. It might be slow,
but I don't have to remember anything and forward references take care of
themselves.
Ofcourse for an assembler running on MSX it would be totally unpractical
for speed reasons, I think...
Anyway, I don't think anyone would want a Z380 assembler run on Z80/R800.
Is Compass prepared for doing 32-bit math on expressions?
I think a Z380 assembler should be run on Z380. And if a proper C compiler
is made, a Z380 assembler can simply be ported to it.
>So I guess I will do it the easy way, and just introduce a new mnemonic
>'JRR'.. or is 'JR16' better? since there is also 24bit JR 'JR24' ?
JR16 and JR24 are better IMO.
Greetz,
Patriek
****
Problems? contact [EMAIL PROTECTED] See also http://www.faq.msxnet.org/
****