Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
|
|
@ -0,0 +1,9 @@
|
|||
import ballerina/io;
|
||||
|
||||
public function main() {
|
||||
// print odd numbers from 1 to 9
|
||||
foreach int i in int:range(1, 10, 2) {
|
||||
io:print(i, " ");
|
||||
}
|
||||
io:println();
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
%newline { [ LIT2 0a -Console/write ] DEO }
|
||||
|
||||
|18 @Console/write
|
||||
|
||||
|100
|
||||
|
||||
#1000 [ LITr 02 ]
|
||||
&loop
|
||||
DUP print/byte newline
|
||||
STHkr ADD GTHk ?&loop
|
||||
POP2 POPr
|
||||
|
||||
BRK
|
||||
|
||||
@print/byte ( byte -- )
|
||||
DUP #04 SFT /nibble
|
||||
|
||||
&nibble ( byte -- )
|
||||
#0f AND DUP #09 GTH #27 MUL ADD [ LIT "0 ] ADD .Console/write DEO
|
||||
JMP2r
|
||||
Loading…
Add table
Add a link
Reference in a new issue