1
0
Fork 0
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:
Connor Olding 2016-04-23 16:43:43 -07:00
parent 1188543cd2
commit 43e08af5c5
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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