]> sigrok.org Git - libsigrokdecode.git/commit
z80: Output jump offsets relative to instruction start.
authorDaniel Elstner <redacted>
Thu, 27 Feb 2014 21:07:58 +0000 (22:07 +0100)
committerDaniel Elstner <redacted>
Thu, 27 Feb 2014 21:07:58 +0000 (22:07 +0100)
commit8830db5df55241e1ea775a70671ecb11235cf3c1
tree75bd3e2bb74edaf0ffb498500b0db120ef8df610
parentaef3c1095e966212fd9a9b02cb08a0ff50e13a7b
z80: Output jump offsets relative to instruction start.

Most assemblers recognize the symbol $ for the address of the
current instruction. Make use of this to output relative jump
instructions using the $[+-]offset syntax, with offset being
the displacement minus the instruction length.
decoders/z80/pd.py
decoders/z80/tables.py