Skip to content

Commit

Permalink
pebble support not serious
Browse files Browse the repository at this point in the history
  • Loading branch information
Maya Karabula-Stysiak committed Apr 28, 2023
1 parent ec59d8b commit ea631e0
Show file tree
Hide file tree
Showing 4 changed files with 2,088 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/pebble.rom
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
�p��e��b��b��l��e��<��3��U��X��N��
�
23 changes: 23 additions & 0 deletions examples/pebble.tal
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
( hello.tal )
( devices )
|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ]

( macros )
( print a character to standard output )
%EMIT { .Console/write DEO } ( character -- )
( print a newline )
%NL { #0a EMIT } ( -- )

( main program )
|0100 LIT "p EMIT
LIT "e EMIT
LIT "b EMIT
LIT "b EMIT
LIT "l EMIT
LIT "e EMIT
LIT "< EMIT
LIT "3 EMIT
LIT "U EMIT
LIT "X EMIT
LIT "N EMIT
NL
Loading

0 comments on commit ea631e0

Please sign in to comment.