> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of John Coppens > Sent: Friday, August 22, 2014 12:30 PM > To: piclist@mit.edu > Subject: Re: [EE] Z80 dis-assembly assembly - preferred tools >=20 > On Sat, 16 Aug 2014 21:49:20 +0700 > Justin Richards wrote: >=20 > > Now lastly the re-assembled file is 2 bytes larger than the original > > 4096 as compared with 4098. It needs to fit into a 4K EPROM. >=20 > It's been many a year since I programmed Z80, but I seem to remember > there are 2 and 3 byte jumps. If the destination address is after the jump, the > assmebler doesn't have any option but to use the 3-byte address as it > doesn't know yet how far to jump. Unless you promise in the source code > that the jump will be 'near' >=20 > John Z80 assemblers are aware of this issue and generally have two different opcodes: JP Z,xxxx - 3 byte absolute jump JR Z,xxxx - 2 byte relative jump ~ Bob Ammerman RAm Systems --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .