Advertisement
Guest User

Untitled

a guest
Jul 6th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn execute-opcode
  2.   [opcode state]
  3.  
  4.   (def empty-opcode [0 0 0 0])
  5.  
  6.   (println "OPCODE TYPE: " (type opcode))
  7.   (println "EMPTY-OPCODE TYPE: " (type empty-opcode))
  8.  
  9.   (if (= empty-opcode opcode)
  10.     (. System exit 0)
  11.     )
  12.   (println "Executing opcode => " opcode "...")
  13.   (assoc state :PC (+ (get state :PC) 0x2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement