Implement 386 instruction table, improve 8086/186/286 instruction table
[multi_emu.git] / decode_65c02_pre.sed
1 y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
2 s/^???/illegal_opcode/
3 s/^\(rmb\)\([0-7]\)/\1 \2/
4 s/^\([rs]mb\)\([0-7]\)/\1 \2/
5 s/^\(ph\)\([axyp]\)/\1 \2/
6 s/^\(pl\)\([axy]\)/\1 \2/
7 s/^\(cl\|se\)\([cdiv]\)/\1 \2/
8 s/^bra/bra true/
9 s/^b\(ne\|eq\|[cv][cs]\|pl\|mi\)/bra \1/
10 s/^de\([xy]\)/dec \1/
11 s/^in\([xy]\)/inc \1/
12 s/^cmp/cmp a/
13 s/^cp\([xy]\)/cmp \1/
14 s/^\(ld\)\([axy]\)/\1 \2/
15 s/^\(st\)\([axy]\)/\1 \2/
16 s/^stz/st 0/
17 s/^txs/st x s/
18 s/^t\([axys]\)\([axys]\)/ld \2 \1/