Function moa_z80::decode::get_ins_x

source ·
fn get_ins_x(ins: u8) -> u8
Expand description

Z80 Decode

Based on an algorithm described in a Romanian book called “Ghidul Programatorului ZX Spectrum” (“The ZX Spectrum Programmer’s Guide”) via http://www.z80.info/decoding.htm

Instructions are broken up into x, y, and z parts, or alternatively into x, p, q, and z parts +–––––––––––+ Bits : 7 6 5 4 3 2 1 0 | X | Y | X | P Q +–––––––––––+