labast/scripts/math.lb
2024-02-05 17:13:32 +02:00

23 lines
289 B
Plaintext

; Addition
push 2 ; a = 2
push 3 ; b = 2
add ; a + b
meow ; = 5
; Subtraction
push 9 ; a = 9
push 4 ; b = 4
sub ; b - a
meow ; = 5
; Multiplication
push 9 ; a = 9
push 5 ; b = 5
mul ; b * a
meow ; = 45
; Division
push 81; a = 81
push 9 ; b = 9
div ; b / a
meow ; = 9