2021-11-14 21:51:02 +00:00
|
|
|
%import textio
|
2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-11-06 18:09:33 +00:00
|
|
|
|
2021-11-09 23:17:56 +00:00
|
|
|
sub start() {
|
2021-11-13 11:56:59 +00:00
|
|
|
|
2021-11-20 23:07:17 +00:00
|
|
|
ubyte xx = 1
|
|
|
|
ubyte yy = 2
|
|
|
|
byte b1
|
|
|
|
byte b2=10
|
|
|
|
|
|
|
|
; result should be: 29 42 40 87 75 35
|
|
|
|
|
|
|
|
xx=6
|
|
|
|
yy=8
|
|
|
|
yy = (xx+5)+(yy+10)
|
|
|
|
txt.print_ub(yy) ; 29
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
xx=6
|
|
|
|
yy=8
|
|
|
|
yy = (xx*3)+(yy*3)
|
|
|
|
txt.print_ub(yy) ; 42
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
b1=13
|
|
|
|
b2=5
|
|
|
|
b2 = (b1*5)-(b2*5)
|
|
|
|
txt.print_b(b2) ; 40
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
b1=100
|
|
|
|
b2=8
|
|
|
|
b2 = (b1+5)-(b2+10)
|
|
|
|
txt.print_b(b2) ; 87
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
b1=50
|
|
|
|
b2=40
|
|
|
|
b2 = (b1-5)+(b2-10)
|
|
|
|
txt.print_b(b2) ; 75
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
b1=50
|
|
|
|
b2=20
|
|
|
|
b2 = (b1-5)-(b2-10)
|
|
|
|
txt.print_b(b2) ; 35
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
repeat {
|
|
|
|
}
|
2021-11-16 22:52:30 +00:00
|
|
|
}
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|