aboutsummaryrefslogtreecommitdiff
path: root/projects/11/K/KGame.vm
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2018-01-20 15:41:49 +0100
committerYuchen Pei <me@ypei.me>2018-01-20 15:41:49 +0100
commitd3a0cc3a8ba6dfeb64d3faeffdeb6845b60e5840 (patch)
treed58df9ec2480e2a9ec6240f9c797f83d1a0b1056 /projects/11/K/KGame.vm
parent3571f998b28fbc8d9250ba04c983935f10a16c15 (diff)
rearranged the dir for github
- removed tools and pdfs - rearranged the projects dirs - added md files - other minor changes
Diffstat (limited to 'projects/11/K/KGame.vm')
-rw-r--r--projects/11/K/KGame.vm74
1 files changed, 0 insertions, 74 deletions
diff --git a/projects/11/K/KGame.vm b/projects/11/K/KGame.vm
deleted file mode 100644
index eef2df0..0000000
--- a/projects/11/K/KGame.vm
+++ /dev/null
@@ -1,74 +0,0 @@
-function KGame.new 0
-push constant 1
-call Memory.alloc 1
-pop pointer 0
-call Board.new 0
-pop this 0
-push this 0
-call Board.draw 1
-pop temp 0
-push pointer 0
-return
-function KGame.dispose 0
-push argument 0
-pop pointer 0
-push this 0
-call Board.dispose 1
-pop temp 0
-push pointer 0
-call Memory.deAlloc 1
-pop temp 0
-push constant 0
-return
-function KGame.run 3
-push argument 0
-pop pointer 0
-push constant 0
-pop local 0
-push constant 0
-pop local 2
-label run.While0
-push local 2
-not
-not
-if-goto run.EndWhile0
-label run.While0.While0
-push local 0
-push constant 130
-lt
-push local 0
-push constant 133
-gt
-or
-not
-if-goto run.While0.EndWhile0
-call Keyboard.keyPressed 0
-pop local 0
-goto run.While0.While0
-label run.While0.EndWhile0
-push local 0
-push constant 130
-sub
-pop local 1
-label run.While0.While1
-push local 0
-push constant 0
-eq
-not
-not
-if-goto run.While0.EndWhile1
-call Keyboard.keyPressed 0
-pop local 0
-goto run.While0.While1
-label run.While0.EndWhile1
-push this 0
-push local 1
-call Board.next 2
-pop temp 0
-push this 0
-call Board.draw 1
-pop temp 0
-goto run.While0
-label run.EndWhile0
-push constant 0
-return