Commit af956406 authored by Brandon Warner's avatar Brandon Warner
Browse files

Finaly added more instructions

parent 094b0790
Pipeline #438 passed with stage
in 14 seconds
......@@ -168,4 +168,38 @@ sbc a, e
sbc a, h
sbc a, l
sbc a, (hl)
sbc a, a
\ No newline at end of file
sbc a, a
and b
and c
and d
and e
and h
and l
and (hl)
and a
xor b
xor c
xor d
xor e
xor h
xor l
xor (hl)
xor a
or b
or c
or d
or e
or h
or l
or (hl)
or a
cp b
cp c
cp d
cp e
cp h
cp l
cp (hl)
cp a
\ No newline at end of file
......@@ -184,6 +184,40 @@ INSTS = [
{"inst":"sbc","size":1,"arg_re":re.compile("a, *l"), "bytecode": 0x9D, "out":struct.Struct('<B')}, # sbc a, l
{"inst":"sbc","size":1,"arg_re":re.compile("a, *\\(hl\\)"), "bytecode": 0x9E, "out":struct.Struct('<B')}, # sbc a, (hl)
{"inst":"sbc","size":1,"arg_re":re.compile("a, *a"), "bytecode": 0x9F, "out":struct.Struct('<B')}, # sbc a, a
{"inst":"and","size":1,"arg_re":re.compile("b"), "bytecode": 0xA0, "out":struct.Struct('<B')}, # and b
{"inst":"and","size":1,"arg_re":re.compile("c"), "bytecode": 0xA1, "out":struct.Struct('<B')}, # and c
{"inst":"and","size":1,"arg_re":re.compile("d"), "bytecode": 0xA2, "out":struct.Struct('<B')}, # and d
{"inst":"and","size":1,"arg_re":re.compile("e"), "bytecode": 0xA3, "out":struct.Struct('<B')}, # and e
{"inst":"and","size":1,"arg_re":re.compile("h"), "bytecode": 0xA4, "out":struct.Struct('<B')}, # and h
{"inst":"and","size":1,"arg_re":re.compile("l"), "bytecode": 0xA5, "out":struct.Struct('<B')}, # and l
{"inst":"and","size":1,"arg_re":re.compile("\\(hl\\)"), "bytecode": 0xA6, "out":struct.Struct('<B')}, # and (hl)
{"inst":"and","size":1,"arg_re":re.compile("a"), "bytecode": 0xA7, "out":struct.Struct('<B')}, # and a
{"inst":"xor","size":1,"arg_re":re.compile("b"), "bytecode": 0xA8, "out":struct.Struct('<B')}, # xor b
{"inst":"xor","size":1,"arg_re":re.compile("c"), "bytecode": 0xA9, "out":struct.Struct('<B')}, # xor c
{"inst":"xor","size":1,"arg_re":re.compile("d"), "bytecode": 0xAA, "out":struct.Struct('<B')}, # xor d
{"inst":"xor","size":1,"arg_re":re.compile("e"), "bytecode": 0xAB, "out":struct.Struct('<B')}, # xor e
{"inst":"xor","size":1,"arg_re":re.compile("h"), "bytecode": 0xAC, "out":struct.Struct('<B')}, # xor h
{"inst":"xor","size":1,"arg_re":re.compile("l"), "bytecode": 0xAD, "out":struct.Struct('<B')}, # xor l
{"inst":"xor","size":1,"arg_re":re.compile("\\(hl\\)"), "bytecode": 0xAE, "out":struct.Struct('<B')}, # xor (hl)
{"inst":"xor","size":1,"arg_re":re.compile("a"), "bytecode": 0xAF, "out":struct.Struct('<B')}, # xor a
{"inst":"or","size":1,"arg_re":re.compile("b"), "bytecode": 0xB0, "out":struct.Struct('<B')}, # or b
{"inst":"or","size":1,"arg_re":re.compile("c"), "bytecode": 0xB1, "out":struct.Struct('<B')}, # or c
{"inst":"or","size":1,"arg_re":re.compile("d"), "bytecode": 0xB2, "out":struct.Struct('<B')}, # or d
{"inst":"or","size":1,"arg_re":re.compile("e"), "bytecode": 0xB3, "out":struct.Struct('<B')}, # or e
{"inst":"or","size":1,"arg_re":re.compile("h"), "bytecode": 0xB4, "out":struct.Struct('<B')}, # or h
{"inst":"or","size":1,"arg_re":re.compile("l"), "bytecode": 0xB5, "out":struct.Struct('<B')}, # or l
{"inst":"or","size":1,"arg_re":re.compile("\\(hl\\)"), "bytecode": 0xB6, "out":struct.Struct('<B')}, # or (hl)
{"inst":"or","size":1,"arg_re":re.compile("a"), "bytecode": 0xB7, "out":struct.Struct('<B')}, # or a
{"inst":"cp","size":1,"arg_re":re.compile("b"), "bytecode": 0xB8, "out":struct.Struct('<B')}, # cp b
{"inst":"cp","size":1,"arg_re":re.compile("c"), "bytecode": 0xB9, "out":struct.Struct('<B')}, # cp c
{"inst":"cp","size":1,"arg_re":re.compile("d"), "bytecode": 0xBA, "out":struct.Struct('<B')}, # cp d
{"inst":"cp","size":1,"arg_re":re.compile("e"), "bytecode": 0xBB, "out":struct.Struct('<B')}, # cp e
{"inst":"cp","size":1,"arg_re":re.compile("h"), "bytecode": 0xBC, "out":struct.Struct('<B')}, # cp h
{"inst":"cp","size":1,"arg_re":re.compile("l"), "bytecode": 0xBD, "out":struct.Struct('<B')}, # cp l
{"inst":"cp","size":1,"arg_re":re.compile("\\(hl\\)"), "bytecode": 0xBE, "out":struct.Struct('<B')}, # cp (hl)
{"inst":"cp","size":1,"arg_re":re.compile("a"), "bytecode": 0xBF, "out":struct.Struct('<B')}, # cp a
]
HEX_RE = re.compile("0x[A-Fa-f0-9]+")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment