Added push and pop instructions
This commit is contained in:
parent
0d8891d8a7
commit
8867845310
4 changed files with 45 additions and 0 deletions
|
@ -11,6 +11,8 @@ const (
|
|||
MUL
|
||||
LABEL
|
||||
MOVE
|
||||
POP
|
||||
PUSH
|
||||
RETURN
|
||||
SUB
|
||||
SYSCALL
|
||||
|
@ -40,6 +42,12 @@ func (m Mnemonic) String() string {
|
|||
case MUL:
|
||||
return "mul"
|
||||
|
||||
case POP:
|
||||
return "pop"
|
||||
|
||||
case PUSH:
|
||||
return "push"
|
||||
|
||||
case RETURN:
|
||||
return "return"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue