Colour bars/Display: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
(Add image output of the task and add some comments.) |
||
Line 2,053: | Line 2,053: | ||
=={{header|Uxntal}}== |
=={{header|Uxntal}}== |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="uxntal">( uxnasm color-bars.tal color-bars.rom && uxnemu color-bars.rom ) |
||
|00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1 |
|||
|20 @Screen &vector $2 &width $2 &height $2 &auto $1 &pad $1 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1 |
|20 @Screen &vector $2 &width $2 &height $2 &auto $1 &pad $1 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1 |
||
|0100 |
|0100 |
||
( set theme ) |
|||
#0f00 .System/r DEO2 |
#0f00 .System/r DEO2 |
||
#00f0 .System/g DEO2 |
#00f0 .System/g DEO2 |
||
#000f .System/b DEO2 |
#000f .System/b DEO2 |
||
( store bars width ) |
|||
.Screen/width DEI2 #0004 DIV2 ,&quarter STR2 |
.Screen/width DEI2 #0004 DIV2 ,&quarter STR2 |
||
( set starting position ) |
|||
#0000 .Screen/y DEO2 |
#0000 .Screen/y DEO2 |
||
( draw bars ) |
|||
#00 |
#00 |
||
&loop |
&loop |
||
Line 2,072: | Line 2,077: | ||
INC DUP #04 NEQ ?&loop |
INC DUP #04 NEQ ?&loop |
||
BRK</syntaxhighlight> |
BRK</syntaxhighlight> |
||
[[File:Color-bars.png|alt=Color bars task implemented in Uxntal.|left|thumb|Color bars task implemented in Uxntal.]] |
|||
=={{header|Wren}}== |
=={{header|Wren}}== |