static void PREFIXV30(_0fpre)(i8086_state *cpustate);
static void PREFIXV30(_repnc)(i8086_state *cpustate);
static void PREFIXV30(_repc)(i8086_state *cpustate);
static void PREFIXV30(_aam)(i8086_state *cpustate);
static void PREFIXV30(_aad)(i8086_state *cpustate);
static void PREFIXV30(_setalc)(i8086_state *cpustate);
#if 0
static void PREFIXV30(_brks)(i8086_state *cpustate);
#endif

/* changed instructions */
static void PREFIX(_pop_ss)(i8086_state *cpustate);
static void PREFIX(_es)(i8086_state *cpustate);
static void PREFIX(_cs)(i8086_state *cpustate);
static void PREFIX(_ss)(i8086_state *cpustate);
static void PREFIX(_ds)(i8086_state *cpustate);
static void PREFIX(_mov_sregw)(i8086_state *cpustate);
static void PREFIXV30(_repne)(i8086_state *cpustate);
static void PREFIXV30(_repe)(i8086_state *cpustate);
static void PREFIXV30(_sti)(i8086_state *cpustate);

/* i8080 instructions */
static void PREFIX80(_00h)(i8086_state *cpustate);
static void PREFIX80(_01h)(i8086_state *cpustate);
static void PREFIX80(_02h)(i8086_state *cpustate);
static void PREFIX80(_03h)(i8086_state *cpustate);
static void PREFIX80(_04h)(i8086_state *cpustate);
static void PREFIX80(_05h)(i8086_state *cpustate);
static void PREFIX80(_06h)(i8086_state *cpustate);
static void PREFIX80(_07h)(i8086_state *cpustate);
static void PREFIX80(_08h)(i8086_state *cpustate);
static void PREFIX80(_09h)(i8086_state *cpustate);
static void PREFIX80(_0ah)(i8086_state *cpustate);
static void PREFIX80(_0bh)(i8086_state *cpustate);
static void PREFIX80(_0ch)(i8086_state *cpustate);
static void PREFIX80(_0dh)(i8086_state *cpustate);
static void PREFIX80(_0eh)(i8086_state *cpustate);
static void PREFIX80(_0fh)(i8086_state *cpustate);
static void PREFIX80(_10h)(i8086_state *cpustate);
static void PREFIX80(_11h)(i8086_state *cpustate);
static void PREFIX80(_12h)(i8086_state *cpustate);
static void PREFIX80(_13h)(i8086_state *cpustate);
static void PREFIX80(_14h)(i8086_state *cpustate);
static void PREFIX80(_15h)(i8086_state *cpustate);
static void PREFIX80(_16h)(i8086_state *cpustate);
static void PREFIX80(_17h)(i8086_state *cpustate);
static void PREFIX80(_18h)(i8086_state *cpustate);
static void PREFIX80(_19h)(i8086_state *cpustate);
static void PREFIX80(_1ah)(i8086_state *cpustate);
static void PREFIX80(_1bh)(i8086_state *cpustate);
static void PREFIX80(_1ch)(i8086_state *cpustate);
static void PREFIX80(_1dh)(i8086_state *cpustate);
static void PREFIX80(_1eh)(i8086_state *cpustate);
static void PREFIX80(_1fh)(i8086_state *cpustate);
static void PREFIX80(_20h)(i8086_state *cpustate);
static void PREFIX80(_21h)(i8086_state *cpustate);
static void PREFIX80(_22h)(i8086_state *cpustate);
static void PREFIX80(_23h)(i8086_state *cpustate);
static void PREFIX80(_24h)(i8086_state *cpustate);
static void PREFIX80(_25h)(i8086_state *cpustate);
static void PREFIX80(_26h)(i8086_state *cpustate);
static void PREFIX80(_27h)(i8086_state *cpustate);
static void PREFIX80(_28h)(i8086_state *cpustate);
static void PREFIX80(_29h)(i8086_state *cpustate);
static void PREFIX80(_2ah)(i8086_state *cpustate);
static void PREFIX80(_2bh)(i8086_state *cpustate);
static void PREFIX80(_2ch)(i8086_state *cpustate);
static void PREFIX80(_2dh)(i8086_state *cpustate);
static void PREFIX80(_2eh)(i8086_state *cpustate);
static void PREFIX80(_2fh)(i8086_state *cpustate);
static void PREFIX80(_30h)(i8086_state *cpustate);
static void PREFIX80(_31h)(i8086_state *cpustate);
static void PREFIX80(_32h)(i8086_state *cpustate);
static void PREFIX80(_33h)(i8086_state *cpustate);
static void PREFIX80(_34h)(i8086_state *cpustate);
static void PREFIX80(_35h)(i8086_state *cpustate);
static void PREFIX80(_36h)(i8086_state *cpustate);
static void PREFIX80(_37h)(i8086_state *cpustate);
static void PREFIX80(_38h)(i8086_state *cpustate);
static void PREFIX80(_39h)(i8086_state *cpustate);
static void PREFIX80(_3ah)(i8086_state *cpustate);
static void PREFIX80(_3bh)(i8086_state *cpustate);
static void PREFIX80(_3ch)(i8086_state *cpustate);
static void PREFIX80(_3dh)(i8086_state *cpustate);
static void PREFIX80(_3eh)(i8086_state *cpustate);
static void PREFIX80(_3fh)(i8086_state *cpustate);
static void PREFIX80(_40h)(i8086_state *cpustate);
static void PREFIX80(_41h)(i8086_state *cpustate);
static void PREFIX80(_42h)(i8086_state *cpustate);
static void PREFIX80(_43h)(i8086_state *cpustate);
static void PREFIX80(_44h)(i8086_state *cpustate);
static void PREFIX80(_45h)(i8086_state *cpustate);
static void PREFIX80(_46h)(i8086_state *cpustate);
static void PREFIX80(_47h)(i8086_state *cpustate);
static void PREFIX80(_48h)(i8086_state *cpustate);
static void PREFIX80(_49h)(i8086_state *cpustate);
static void PREFIX80(_4ah)(i8086_state *cpustate);
static void PREFIX80(_4bh)(i8086_state *cpustate);
static void PREFIX80(_4ch)(i8086_state *cpustate);
static void PREFIX80(_4dh)(i8086_state *cpustate);
static void PREFIX80(_4eh)(i8086_state *cpustate);
static void PREFIX80(_4fh)(i8086_state *cpustate);
static void PREFIX80(_50h)(i8086_state *cpustate);
static void PREFIX80(_51h)(i8086_state *cpustate);
static void PREFIX80(_52h)(i8086_state *cpustate);
static void PREFIX80(_53h)(i8086_state *cpustate);
static void PREFIX80(_54h)(i8086_state *cpustate);
static void PREFIX80(_55h)(i8086_state *cpustate);
static void PREFIX80(_56h)(i8086_state *cpustate);
static void PREFIX80(_57h)(i8086_state *cpustate);
static void PREFIX80(_58h)(i8086_state *cpustate);
static void PREFIX80(_59h)(i8086_state *cpustate);
static void PREFIX80(_5ah)(i8086_state *cpustate);
static void PREFIX80(_5bh)(i8086_state *cpustate);
static void PREFIX80(_5ch)(i8086_state *cpustate);
static void PREFIX80(_5dh)(i8086_state *cpustate);
static void PREFIX80(_5eh)(i8086_state *cpustate);
static void PREFIX80(_5fh)(i8086_state *cpustate);
static void PREFIX80(_60h)(i8086_state *cpustate);
static void PREFIX80(_61h)(i8086_state *cpustate);
static void PREFIX80(_62h)(i8086_state *cpustate);
static void PREFIX80(_63h)(i8086_state *cpustate);
static void PREFIX80(_64h)(i8086_state *cpustate);
static void PREFIX80(_65h)(i8086_state *cpustate);
static void PREFIX80(_66h)(i8086_state *cpustate);
static void PREFIX80(_67h)(i8086_state *cpustate);
static void PREFIX80(_68h)(i8086_state *cpustate);
static void PREFIX80(_69h)(i8086_state *cpustate);
static void PREFIX80(_6ah)(i8086_state *cpustate);
static void PREFIX80(_6bh)(i8086_state *cpustate);
static void PREFIX80(_6ch)(i8086_state *cpustate);
static void PREFIX80(_6dh)(i8086_state *cpustate);
static void PREFIX80(_6eh)(i8086_state *cpustate);
static void PREFIX80(_6fh)(i8086_state *cpustate);
static void PREFIX80(_70h)(i8086_state *cpustate);
static void PREFIX80(_71h)(i8086_state *cpustate);
static void PREFIX80(_72h)(i8086_state *cpustate);
static void PREFIX80(_73h)(i8086_state *cpustate);
static void PREFIX80(_74h)(i8086_state *cpustate);
static void PREFIX80(_75h)(i8086_state *cpustate);
static void PREFIX80(_76h)(i8086_state *cpustate);
static void PREFIX80(_77h)(i8086_state *cpustate);
static void PREFIX80(_78h)(i8086_state *cpustate);
static void PREFIX80(_79h)(i8086_state *cpustate);
static void PREFIX80(_7ah)(i8086_state *cpustate);
static void PREFIX80(_7bh)(i8086_state *cpustate);
static void PREFIX80(_7ch)(i8086_state *cpustate);
static void PREFIX80(_7dh)(i8086_state *cpustate);
static void PREFIX80(_7eh)(i8086_state *cpustate);
static void PREFIX80(_7fh)(i8086_state *cpustate);
static void PREFIX80(_80h)(i8086_state *cpustate);
static void PREFIX80(_81h)(i8086_state *cpustate);
static void PREFIX80(_82h)(i8086_state *cpustate);
static void PREFIX80(_83h)(i8086_state *cpustate);
static void PREFIX80(_84h)(i8086_state *cpustate);
static void PREFIX80(_85h)(i8086_state *cpustate);
static void PREFIX80(_86h)(i8086_state *cpustate);
static void PREFIX80(_87h)(i8086_state *cpustate);
static void PREFIX80(_88h)(i8086_state *cpustate);
static void PREFIX80(_89h)(i8086_state *cpustate);
static void PREFIX80(_8ah)(i8086_state *cpustate);
static void PREFIX80(_8bh)(i8086_state *cpustate);
static void PREFIX80(_8ch)(i8086_state *cpustate);
static void PREFIX80(_8dh)(i8086_state *cpustate);
static void PREFIX80(_8eh)(i8086_state *cpustate);
static void PREFIX80(_8fh)(i8086_state *cpustate);
static void PREFIX80(_90h)(i8086_state *cpustate);
static void PREFIX80(_91h)(i8086_state *cpustate);
static void PREFIX80(_92h)(i8086_state *cpustate);
static void PREFIX80(_93h)(i8086_state *cpustate);
static void PREFIX80(_94h)(i8086_state *cpustate);
static void PREFIX80(_95h)(i8086_state *cpustate);
static void PREFIX80(_96h)(i8086_state *cpustate);
static void PREFIX80(_97h)(i8086_state *cpustate);
static void PREFIX80(_98h)(i8086_state *cpustate);
static void PREFIX80(_99h)(i8086_state *cpustate);
static void PREFIX80(_9ah)(i8086_state *cpustate);
static void PREFIX80(_9bh)(i8086_state *cpustate);
static void PREFIX80(_9ch)(i8086_state *cpustate);
static void PREFIX80(_9dh)(i8086_state *cpustate);
static void PREFIX80(_9eh)(i8086_state *cpustate);
static void PREFIX80(_9fh)(i8086_state *cpustate);
static void PREFIX80(_a0h)(i8086_state *cpustate);
static void PREFIX80(_a1h)(i8086_state *cpustate);
static void PREFIX80(_a2h)(i8086_state *cpustate);
static void PREFIX80(_a3h)(i8086_state *cpustate);
static void PREFIX80(_a4h)(i8086_state *cpustate);
static void PREFIX80(_a5h)(i8086_state *cpustate);
static void PREFIX80(_a6h)(i8086_state *cpustate);
static void PREFIX80(_a7h)(i8086_state *cpustate);
static void PREFIX80(_a8h)(i8086_state *cpustate);
static void PREFIX80(_a9h)(i8086_state *cpustate);
static void PREFIX80(_aah)(i8086_state *cpustate);
static void PREFIX80(_abh)(i8086_state *cpustate);
static void PREFIX80(_ach)(i8086_state *cpustate);
static void PREFIX80(_adh)(i8086_state *cpustate);
static void PREFIX80(_aeh)(i8086_state *cpustate);
static void PREFIX80(_afh)(i8086_state *cpustate);
static void PREFIX80(_b0h)(i8086_state *cpustate);
static void PREFIX80(_b1h)(i8086_state *cpustate);
static void PREFIX80(_b2h)(i8086_state *cpustate);
static void PREFIX80(_b3h)(i8086_state *cpustate);
static void PREFIX80(_b4h)(i8086_state *cpustate);
static void PREFIX80(_b5h)(i8086_state *cpustate);
static void PREFIX80(_b6h)(i8086_state *cpustate);
static void PREFIX80(_b7h)(i8086_state *cpustate);
static void PREFIX80(_b8h)(i8086_state *cpustate);
static void PREFIX80(_b9h)(i8086_state *cpustate);
static void PREFIX80(_bah)(i8086_state *cpustate);
static void PREFIX80(_bbh)(i8086_state *cpustate);
static void PREFIX80(_bch)(i8086_state *cpustate);
static void PREFIX80(_bdh)(i8086_state *cpustate);
static void PREFIX80(_beh)(i8086_state *cpustate);
static void PREFIX80(_bfh)(i8086_state *cpustate);
static void PREFIX80(_c0h)(i8086_state *cpustate);
static void PREFIX80(_c1h)(i8086_state *cpustate);
static void PREFIX80(_c2h)(i8086_state *cpustate);
static void PREFIX80(_c3h)(i8086_state *cpustate);
static void PREFIX80(_c4h)(i8086_state *cpustate);
static void PREFIX80(_c5h)(i8086_state *cpustate);
static void PREFIX80(_c6h)(i8086_state *cpustate);
static void PREFIX80(_c7h)(i8086_state *cpustate);
static void PREFIX80(_c8h)(i8086_state *cpustate);
static void PREFIX80(_c9h)(i8086_state *cpustate);
static void PREFIX80(_cah)(i8086_state *cpustate);
static void PREFIX80(_cbh)(i8086_state *cpustate);
static void PREFIX80(_cch)(i8086_state *cpustate);
static void PREFIX80(_cdh)(i8086_state *cpustate);
static void PREFIX80(_ceh)(i8086_state *cpustate);
static void PREFIX80(_cfh)(i8086_state *cpustate);
static void PREFIX80(_d0h)(i8086_state *cpustate);
static void PREFIX80(_d1h)(i8086_state *cpustate);
static void PREFIX80(_d2h)(i8086_state *cpustate);
static void PREFIX80(_d3h)(i8086_state *cpustate);
static void PREFIX80(_d4h)(i8086_state *cpustate);
static void PREFIX80(_d5h)(i8086_state *cpustate);
static void PREFIX80(_d6h)(i8086_state *cpustate);
static void PREFIX80(_d7h)(i8086_state *cpustate);
static void PREFIX80(_d8h)(i8086_state *cpustate);
static void PREFIX80(_d9h)(i8086_state *cpustate);
static void PREFIX80(_dah)(i8086_state *cpustate);
static void PREFIX80(_dbh)(i8086_state *cpustate);
static void PREFIX80(_dch)(i8086_state *cpustate);
static void PREFIX80(_ddh)(i8086_state *cpustate);
static void PREFIX80(_deh)(i8086_state *cpustate);
static void PREFIX80(_dfh)(i8086_state *cpustate);
static void PREFIX80(_e0h)(i8086_state *cpustate);
static void PREFIX80(_e1h)(i8086_state *cpustate);
static void PREFIX80(_e2h)(i8086_state *cpustate);
static void PREFIX80(_e3h)(i8086_state *cpustate);
static void PREFIX80(_e4h)(i8086_state *cpustate);
static void PREFIX80(_e5h)(i8086_state *cpustate);
static void PREFIX80(_e6h)(i8086_state *cpustate);
static void PREFIX80(_e7h)(i8086_state *cpustate);
static void PREFIX80(_e8h)(i8086_state *cpustate);
static void PREFIX80(_e9h)(i8086_state *cpustate);
static void PREFIX80(_eah)(i8086_state *cpustate);
static void PREFIX80(_ebh)(i8086_state *cpustate);
static void PREFIX80(_ech)(i8086_state *cpustate);
static void PREFIX80(_edh)(i8086_state *cpustate);
static void PREFIX80(_eeh)(i8086_state *cpustate);
static void PREFIX80(_efh)(i8086_state *cpustate);
static void PREFIX80(_f0h)(i8086_state *cpustate);
static void PREFIX80(_f1h)(i8086_state *cpustate);
static void PREFIX80(_f2h)(i8086_state *cpustate);
static void PREFIX80(_f3h)(i8086_state *cpustate);
static void PREFIX80(_f4h)(i8086_state *cpustate);
static void PREFIX80(_f5h)(i8086_state *cpustate);
static void PREFIX80(_f6h)(i8086_state *cpustate);
static void PREFIX80(_f7h)(i8086_state *cpustate);
static void PREFIX80(_f8h)(i8086_state *cpustate);
static void PREFIX80(_f9h)(i8086_state *cpustate);
static void PREFIX80(_fah)(i8086_state *cpustate);
static void PREFIX80(_fbh)(i8086_state *cpustate);
static void PREFIX80(_fch)(i8086_state *cpustate);
static void PREFIX80(_fdh)(i8086_state *cpustate);
static void PREFIX80(_feh)(i8086_state *cpustate);
static void PREFIX80(_ffh)(i8086_state *cpustate);
