Implemented return keyword
This commit is contained in:
parent
7bbfa8914f
commit
f603c3a479
4 changed files with 22 additions and 0 deletions
|
@ -38,8 +38,14 @@ func (a *Assembler) Finalize() ([]byte, []byte) {
|
|||
})
|
||||
}
|
||||
|
||||
case RETURN:
|
||||
code = x64.Return(code)
|
||||
|
||||
case SYSCALL:
|
||||
code = x64.Syscall(code)
|
||||
|
||||
default:
|
||||
panic("Unknown mnemonic: " + x.Mnemonic.String())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue