diff --git a/examples/hello.usm b/examples/hello.usm index 95d63ff..9d2bc00 100644 --- a/examples/hello.usm +++ b/examples/hello.usm @@ -12,9 +12,9 @@ ( print to screen ) #0008 =x #0030 =y #01 =color ,string ,displaygui JSR - #0010 =x #0038 =y #12 =color + #0010 =x #0038 =y #02 =color ,string ,displaygui JSR - #0018 =x #0040 =y #23 =color + #0018 =x #0040 =y #03 =color ,string ,displaygui JSR @@ -40,18 +40,18 @@ BRK RTS @printchar - ~color #01 ROT ,getchar JSR ~x ~y ,puticon JSR + ~color ,getchar JSR ~x ~y ,draw-sprite JSR RTS @getchar #00 SWP #0008 MUL2 ,SPRITESHEET ADD2 RTS -@puticon - IOW2 ( y short ) - IOW2 ( x short ) +@draw-sprite + IOW2 ( y byte ) + IOW2 ( x byte ) IOW2 ( sprite address ) - IOW2 ( redraw byte ) + IOW ( layer-color ) RTS |0300 @SPRITESHEET ( first 128 characters of the spectrum-zx font ) @@ -94,5 +94,5 @@ BRK |c000 @FRAME |d000 @ERROR -|FFF0 [ f2ac 35bb 2b53 ] ( palette ) +|FFF0 [ f3f0 f30b f30a ] ( palette ) |FFFA .RESET .FRAME .ERROR \ No newline at end of file diff --git a/examples/paint.usm b/examples/paint.usm index 5e65759..a9b6c8e 100644 --- a/examples/paint.usm +++ b/examples/paint.usm @@ -12,7 +12,7 @@ #02 =dev/w ( set dev/write to sprite ) #05 =color ( select a default color ) - ,brush_large ,brush STR2 ( select a default brush ) + ,brush_large =brush ( select a default brush ) ,draw-interface JSR @@ -91,5 +91,5 @@ BRK |d000 @ERROR BRK -|FFF0 [ f2af 35bb 2b5f ] ( palette ) +|FFF0 [ f1c3 f12e f12a ] ( palette ) |FFFA .RESET .FRAME .ERROR