mirror of
https://github.com/notwa/lips
synced 2025-03-09 19:32:49 -07: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"
|
package.path = package.path..";?/init.lua"
|
||||||
local lips = require "lips"
|
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
|
end
|
||||||
self:push_new('BEQ', reg, 'R0', beq_offset)
|
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)
|
self:push_new(branch, 'AT', 'R0', offset)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue