aboutsummaryrefslogtreecommitdiff
path: root/instructions.go
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-09-05 20:29:02 +0200
committerAstatin <[email protected]>2025-09-05 20:29:02 +0200
commite66d419e7af660e97ef14d4e12053a8900c8f72a (patch)
tree9c8477f7e02014900d03974a1d6d84a5de0dbe3a /instructions.go
parent823452b54baab15c39517fee7e2eb5db6d73c9d4 (diff)
ADD HL, r16 instructionHEADlatestmain
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{
{