aboutsummaryrefslogtreecommitdiff
path: root/instructions.go
diff options
context:
space:
mode:
Diffstat (limited to 'instructions.go')
-rw-r--r--instructions.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/instructions.go b/instructions.go
index b9b918a..8e2aebc 100644
--- a/instructions.go
+++ b/instructions.go
@@ -136,6 +136,10 @@ func InstructionSetNew() InstructionSet {
Types: []ParamType{SP, Raw8},
Assembler: func(_ uint32, args []uint32) ([]byte, error) { return []byte{0b11101000, uint8(args[1])}, nil },
},
+ {
+ Types: []ParamType{HL, Reg16},
+ Assembler: func(_ uint32, args []uint32) ([]byte, error) { return []byte{0b00001001 | (uint8(args[1] << 4))}, nil },
+ },
}
result["ADC"] = []InstructionParams{
{