about summary refs log tree commit diff stats
path: root/apps/raytracing/vec.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/raytracing/vec.mu')
-rw-r--r--apps/raytracing/vec.mu11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/raytracing/vec.mu b/apps/raytracing/vec.mu
index 29516fb1..5539a0dd 100644
--- a/apps/raytracing/vec.mu
+++ b/apps/raytracing/vec.mu
@@ -35,4 +35,15 @@ fn vec3-unit in: (addr vec3), out: (addr vec3) {
 }
 
 fn print-vec3 screen: (addr screen), _a: (addr vec3) {
+  var a/esi: (addr vec3) <- copy _a
+  print-string screen, "("
+  var tmp/eax: (addr float) <- get a, x
+  print-float screen, *tmp
+  print-string screen, ", "
+  tmp <- get a, y
+  print-float screen, *tmp
+  print-string screen, ", "
+  tmp <- get a, z
+  print-float screen, *tmp
+  print-string screen, ")"
 }