about summary refs log tree commit diff stats
path: root/apps/texture.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/texture.mu')
-rw-r--r--apps/texture.mu24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/texture.mu b/apps/texture.mu
index 1eaf892d..4cfd3bbe 100644
--- a/apps/texture.mu
+++ b/apps/texture.mu
@@ -11,12 +11,12 @@ fn main -> _/ebx: int {
 #?   var height/edi: int <- copy 0xe1  # 225; aspect ratio 16:9
   var width/esi: int <- copy 0xff
   var height/edi: int <- copy 0xff
-  print-string 0, "P3\n"
-  print-int32-decimal 0, width
-  print-string 0, " "
-  print-int32-decimal 0, height
-  print-string 0, "\n"
-  print-string 0, "255\n"  # color depth
+  print-string 0/screen, "P3\n"
+  print-int32-decimal 0/screen, width
+  print-string 0/screen, " "
+  print-int32-decimal 0/screen, height
+  print-string 0/screen, "\n"
+  print-string 0/screen, "255\n"  # color depth
   var row/ecx: int <- copy 0
   {
     compare row, height
@@ -31,23 +31,23 @@ fn main -> _/ebx: int {
       tmp <- and 0x7f
       tmp <- add 0x80
       tmp <- copy 0xff
-      print-int32-decimal 0, tmp
-      print-string 0, " "
+      print-int32-decimal 0/screen, tmp
+      print-string 0/screen, " "
       # g
       tmp <- copy row
       tmp <- multiply col
       tmp <- and 0x7f
       tmp <- add 0x80
 #?       tmp <- copy 0xcf
-      print-int32-decimal 0, tmp
-      print-string 0, " "
+      print-int32-decimal 0/screen, tmp
+      print-string 0/screen, " "
       # b
       tmp <- copy row
       tmp <- multiply col
       tmp <- and 0x7f
       tmp <- add 0x80
-      print-int32-decimal 0, tmp
-      print-string 0, "\n"
+      print-int32-decimal 0/screen, tmp
+      print-string 0/screen, "\n"
       col <- increment
       loop
     }