labast/scripts/math.lb

23 lines
289 B
Plaintext
Raw Permalink Normal View History

2024-02-05 07:05:48 +00:00
; Addition
2024-02-05 15:13:32 +00:00
push 2 ; a = 2
push 3 ; b = 2
add ; a + b
meow ; = 5
2024-02-05 07:05:48 +00:00
; Subtraction
2024-02-05 15:13:32 +00:00
push 9 ; a = 9
push 4 ; b = 4
sub ; b - a
meow ; = 5
2024-02-05 07:05:48 +00:00
; Multiplication
2024-02-05 15:13:32 +00:00
push 9 ; a = 9
push 5 ; b = 5
mul ; b * a
meow ; = 45
2024-02-05 07:05:48 +00:00
; Division
2024-02-05 15:13:32 +00:00
push 81; a = 81
push 9 ; b = 9
div ; b / a
meow ; = 9