Skip to content

Commit

Permalink
Rixing register index typo
Browse files Browse the repository at this point in the history
  • Loading branch information
josefnpat committed Feb 25, 2022
1 parent f8ddc68 commit 561a5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ table.insert(ops,{
table.insert(ops,{
label = "SAVE",
info = "Save contents of R0 to X[R1+R2], Y[R3+R4].",
short = "X[R*16+R2]+Y[R3*16+R4]=R0",
short = "X[R1*16+R2]+Y[R3*16+R4]=R0",
sound = "F#",
exe = function(self)
local x = (self.registers[1])*16 + self.registers[2]
Expand Down

0 comments on commit 561a5a0

Please sign in to comment.