mirror of
https://github.com/notwa/lips
synced 2024-11-14 09:19:02 -08:00
fix some branch pseudo-instructions; fix example
This commit is contained in:
parent
1188543cd2
commit
43e08af5c5
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue