comparison clojure/com/aurellem/run/adv_choreo.clj @ 552:9068685e7d96

moduralized main-bootstrap-program
author Robert McIntyre <rlm@mit.edu>
date Thu, 30 Aug 2012 12:09:15 -0500
parents b69a3dba8045
children 0901694725f0
comparison
equal deleted inserted replaced
551:b69a3dba8045 552:9068685e7d96
90 ([] (activate-program (write-all-program-data))) 90 ([] (activate-program (write-all-program-data)))
91 ([script] 91 ([script]
92 (->> script 92 (->> script
93 (transfer-control main-program-base-address) 93 (transfer-control main-program-base-address)
94 (do-nothing 1800)))) 94 (do-nothing 1800))))
95 95
96
97 ;; possible screen writing programs
98
99 ;; (program needs to stop executing at some point)
100 ;; maybe have total length counter or something?
101
102 ;; automatic counter that reads from program-start and clears the
103 ;; screen every 360 (* 18 20) gliphs
104
105 ;; advantages -- very simple and low bandwidth
106 ;; disadvantages -- hard to align counter
107
108 ;; implementation -- refactor main-bootstrap-program to provide a
109 ;; state-machine code-section which can be recombined into another
110 ;; program.