lang-bootstrap/03/ex03

41 lines
330 B
Text
Raw Normal View History

2021-11-13 13:48:27 -05:00
D]=d7
D]=C
D^=C
D|=C
D&=C
~C
B|=A
8D=C
A=1B
B>=d33
call :funciton
x4b
!:label
?J<B:label
:label
1B=C
; :l ba b
2021-11-13 14:13:16 -05:00
J=d0
2021-11-13 13:48:27 -05:00
A=d60
syscall x3c
2021-11-13 14:13:16 -05:00
align
2021-11-13 13:48:27 -05:00
:label
2021-11-13 14:13:16 -05:00
reserve d1000
2021-11-13 13:48:27 -05:00
B+=J
B<=d9
B-=J
?J=B:label
?A!B:label
?A>B:label
A=:label
x3c
2021-11-13 14:13:16 -05:00
return
2021-11-13 14:32:00 -05:00
imul
idiv
mul
div
2021-11-13 13:48:27 -05:00
:funciton
call A
str Here is some text which will be put in the executable!