From e66d419e7af660e97ef14d4e12053a8900c8f72a Mon Sep 17 00:00:00 2001 From: Astatin Date: Fri, 5 Sep 2025 20:29:02 +0200 Subject: ADD HL, r16 instruction --- instructions.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'instructions.go') 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{ { -- cgit v1.2.3-70-g09d2