diff --git a/example.lua b/example.lua index d2d248a..e76873c 100644 --- a/example.lua +++ b/example.lua @@ -1,3 +1,6 @@ package.path = package.path..";?/init.lua" local lips = require "lips" -lips('example.asm') +local err = lips('example.asm', nil, {offset=0}) +if err then + print(err) +end diff --git a/lips/overrides.lua b/lips/overrides.lua index 55f231d..70ac6ea 100644 --- a/lips/overrides.lua +++ b/lips/overrides.lua @@ -262,7 +262,7 @@ function overrides.BLEI(self, name) end self:push_new('BEQ', reg, 'R0', beq_offset) - self:push_new('SLT', 'AT', reg, immediate) + self:push_new('SLTI', 'AT', reg, immediate) self:push_new(branch, 'AT', 'R0', offset) end