Implemented function calls
This commit is contained in:
parent
cd1fe5eebb
commit
6043baee48
11 changed files with 114 additions and 62 deletions
|
@ -7,6 +7,8 @@ const (
|
|||
MOVE
|
||||
RETURN
|
||||
SYSCALL
|
||||
LABEL
|
||||
CALL
|
||||
)
|
||||
|
||||
// String returns a human readable version.
|
||||
|
@ -20,6 +22,12 @@ func (m Mnemonic) String() string {
|
|||
|
||||
case SYSCALL:
|
||||
return "syscall"
|
||||
|
||||
case LABEL:
|
||||
return "label"
|
||||
|
||||
case CALL:
|
||||
return "call"
|
||||
}
|
||||
|
||||
return "NONE"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue