Hello world/Newline omission: Difference between revisions
Content added Content deleted
(Add Uxntal) |
|||
Line 1,368: | Line 1,368: | ||
Ursa doesn't output a newline to an I/O device by default, so simply omitting an endl object at the end of the output stream is all that's needed. |
Ursa doesn't output a newline to an I/O device by default, so simply omitting an endl object at the end of the output stream is all that's needed. |
||
<syntaxhighlight lang="ursa">out "goodbye world!" console</syntaxhighlight> |
<syntaxhighlight lang="ursa">out "goodbye world!" console</syntaxhighlight> |
||
=={{header|Uxntal}}== |
|||
<syntaxhighlight lang="Uxntal">|00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1 |
|||
|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1 |
|||
|0100 |
|||
;message |
|||
&loop |
|||
LDAk .Console/write DEO |
|||
INC2 LDAk ?&loop |
|||
POP2 |
|||
#80 .System/state DEO |
|||
BRK |
|||
@message "Goodbye, 20 "World! 00</syntaxhighlight> |
|||
=={{header|Vale}}== |
=={{header|Vale}}== |