diff options
author | Astatin <[email protected]> | 2025-09-05 20:29:02 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-09-05 20:29:02 +0200 |
commit | e66d419e7af660e97ef14d4e12053a8900c8f72a (patch) | |
tree | 9c8477f7e02014900d03974a1d6d84a5de0dbe3a | |
parent | 823452b54baab15c39517fee7e2eb5db6d73c9d4 (diff) |
-rw-r--r-- | instructions.go | 4 |
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{ { |