summaryrefslogtreecommitdiff
path: root/projects/12/ScreenTest/Main.vm
diff options
context:
space:
mode:
Diffstat (limited to 'projects/12/ScreenTest/Main.vm')
-rw-r--r--projects/12/ScreenTest/Main.vm104
1 files changed, 104 insertions, 0 deletions
diff --git a/projects/12/ScreenTest/Main.vm b/projects/12/ScreenTest/Main.vm
new file mode 100644
index 0000000..69e860f
--- /dev/null
+++ b/projects/12/ScreenTest/Main.vm
@@ -0,0 +1,104 @@
+function Main.main 0
+push constant 0
+push constant 220
+push constant 511
+push constant 220
+call Screen.drawLine 4
+pop temp 0
+push constant 280
+push constant 90
+push constant 410
+push constant 220
+call Screen.drawRectangle 4
+pop temp 0
+push constant 0
+call Screen.setColor 1
+pop temp 0
+push constant 350
+push constant 120
+push constant 390
+push constant 219
+call Screen.drawRectangle 4
+pop temp 0
+push constant 292
+push constant 120
+push constant 332
+push constant 150
+call Screen.drawRectangle 4
+pop temp 0
+push constant 0
+not
+call Screen.setColor 1
+pop temp 0
+push constant 360
+push constant 170
+push constant 3
+call Screen.drawCircle 3
+pop temp 0
+push constant 280
+push constant 90
+push constant 345
+push constant 35
+call Screen.drawLine 4
+pop temp 0
+push constant 345
+push constant 35
+push constant 410
+push constant 90
+call Screen.drawLine 4
+pop temp 0
+push constant 140
+push constant 60
+push constant 30
+call Screen.drawCircle 3
+pop temp 0
+push constant 140
+push constant 26
+push constant 140
+push constant 6
+call Screen.drawLine 4
+pop temp 0
+push constant 163
+push constant 35
+push constant 178
+push constant 20
+call Screen.drawLine 4
+pop temp 0
+push constant 174
+push constant 60
+push constant 194
+push constant 60
+call Screen.drawLine 4
+pop temp 0
+push constant 163
+push constant 85
+push constant 178
+push constant 100
+call Screen.drawLine 4
+pop temp 0
+push constant 140
+push constant 94
+push constant 140
+push constant 114
+call Screen.drawLine 4
+pop temp 0
+push constant 117
+push constant 85
+push constant 102
+push constant 100
+call Screen.drawLine 4
+pop temp 0
+push constant 106
+push constant 60
+push constant 86
+push constant 60
+call Screen.drawLine 4
+pop temp 0
+push constant 117
+push constant 35
+push constant 102
+push constant 20
+call Screen.drawLine 4
+pop temp 0
+push constant 0
+return