init repo with 99 bottles of beer and help tals
This commit is contained in:
commit
06daa57ba5
4 changed files with 47 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.rom
|
||||
.snarf
|
||||
*.rom.sym
|
22
99_bottles.tal
Normal file
22
99_bottles.tal
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
|0100
|
||||
;bottles-of-beer print
|
||||
;on-the-wall print
|
||||
;bottles-of-beer print
|
||||
BRK
|
||||
|
||||
|
||||
%SP { 20 }
|
||||
|
||||
@bottles-of-beer "99_bottles_of_beer 00
|
||||
@on-the-wall "on_the_wall 00
|
||||
@take-one-down "take_one_down,_pass_it_around 00
|
||||
|
||||
|
||||
@print ( str* -: )
|
||||
( LDAk LIT "_ NEQk ?print/space )
|
||||
LDAk #18 DEO
|
||||
INC2 LDAk ?print
|
||||
( print newline )
|
||||
#0a #18 DEO
|
||||
POP2 JMP2r
|
18
hello.tal
Normal file
18
hello.tal
Normal file
|
@ -0,0 +1,18 @@
|
|||
@Log #18
|
||||
|
||||
|0100 LIT "h ;Log DEO ( h )
|
||||
LIT "e #18 DEO ( e )
|
||||
LIT "l #18 DEO ( l )
|
||||
#6c #18 DEO ( l )
|
||||
#6f #18 DEO ( o )
|
||||
#0a #18 DEO ( newline )
|
||||
#18s
|
||||
|
||||
#19 DUP ( 25 25 )
|
||||
#0a DIV ( 25 02 )
|
||||
SWP DUP ( 02 25 25 )
|
||||
#0a DIV ( 02 25 02 )
|
||||
#0a MUL ( 02 25 20 )
|
||||
SUB ( 02 05 )
|
||||
#30 ADD SWP #30 ADD
|
||||
#18 DEO #18 DEO
|
4
run.sh
Executable file
4
run.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
../uxn/bin/uxnasm 99_bottles.tal 99_bottles.rom && ../uxn/bin/uxncli 99_bottles.rom
|
Loading…
Add table
Add a link
Reference in a new issue