Skip to content

Commit

Permalink
Fix for LD SP,d16 and LD SP,r16 not working properly (#18)
Browse files Browse the repository at this point in the history
Currently, executing LD SP,d16 throws an "Only one operand expected for readWord!" error.
  • Loading branch information
DrakonUA authored Jan 30, 2024
1 parent 6615e6f commit bfd51c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function determineLdType(operand) {
return 1;
} else {
byteStream.push(49);
readWord(operand[1]);
readWord([operand[1]]);
return 3;
}
} else {
Expand Down

0 comments on commit bfd51c5

Please sign in to comment.