Skip to content

Commit 62ae8a1

Browse files
authored
Fix typo in instruction encoding (#540)
In the instruction set page, the binary for "ld [imm16], a" is set to 0xEC which is an invalid code. A one and a zero had been swapped. "ld [imm16], a" should be 0xEA
1 parent f026175 commit 62ae8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CPU_Instruction_Set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Finally, the instruction "families" have been further grouped into four "blocks"
153153
{{#bits 8 >
154154
"<code>ldh [c], a</code>" 7:"1" 6:"1" 5:"1" 4:"0" 3:"0" 2:"0" 1:"1" 0:"0" ;
155155
"<code>ldh [imm8], a</code>" 7:"1" 6:"1" 5:"1" 4:"0" 3:"0" 2:"0" 1:"0" 0:"0" ;
156-
"<code>ld [imm16], a</code>" 7:"1" 6:"1" 5:"1" 4:"0" 3:"1" 2:"1" 1:"0" 0:"0" ;
156+
"<code>ld [imm16], a</code>" 7:"1" 6:"1" 5:"1" 4:"0" 3:"1" 2:"0" 1:"1" 0:"0" ;
157157
"<code>ldh a, [c]</code>" 7:"1" 6:"1" 5:"1" 4:"1" 3:"0" 2:"0" 1:"1" 0:"0" ;
158158
"<code>ldh a, [imm8]</code>" 7:"1" 6:"1" 5:"1" 4:"1" 3:"0" 2:"0" 1:"0" 0:"0" ;
159159
"<code>ld a, [imm16]</code>" 7:"1" 6:"1" 5:"1" 4:"1" 3:"1" 2:"1" 1:"0" 0:"0" ;

0 commit comments

Comments
 (0)