Added push and pop instructions

This commit is contained in:
Eduard Urbach 2024-06-27 12:59:41 +02:00
parent 0d8891d8a7
commit 8867845310
Signed by: eduard
GPG key ID: 49226B848C78F6C8
4 changed files with 45 additions and 0 deletions

View file

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