Implemented function calls

This commit is contained in:
Eduard Urbach 2024-06-18 16:42:56 +02:00
parent cd1fe5eebb
commit 6043baee48
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 114 additions and 62 deletions

View file

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