Mercurial > vba-clojure
comparison clojure/com/aurellem/exp/notes.txt @ 295:d35683bfc15f
dylan thought of a better program using op 0x70.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 30 Mar 2012 18:25:02 -0500 |
parents | 4a0dbaed7078 |
children | 528dc923d4c5 |
comparison
equal
deleted
inserted
replaced
294:9f466a332448 | 295:d35683bfc15f |
---|---|
85 | 85 |
86 0x00 | 86 0x00 |
87 0x21 ;; load target into HL | 87 0x21 ;; load target into HL |
88 | 88 |
89 third rival's name character | 89 third rival's name character |
90 xD5 -- target item address | 90 xD5 -- target item address |
91 | 91 |
92 0x00 | 92 0x00 |
93 0x2A ;; save (HL)=(target) to A, increment HL | 93 0x2A ;; save (HL)=(target) to A, increment HL |
94 | 94 |
95 0x00 | 95 0x00 |
96 0x78 ;; save A to B | 96 0x47 ;; save A to B |
97 | 97 |
98 0x00 | 98 0x00 |
99 0x3A ;; save (target+1) to A, decrement HL | 99 0x3A ;; save (target+1) to A, decrement HL |
100 | 100 |
101 0x00 | 101 0x00 |
102 0x22 ;; save A to target, increment HL [(target+1) -> target] | 102 0x22 ;; save A to target, increment HL [(target+1) -> target] |
103 | 103 |
104 0x00 | 104 0x00 |
105 0x78 ;; load B to A | 105 0x70 ;; load B into target+1 [(target) -> target+1] |
106 | |
107 0x00 | |
108 0x77 ;; load A into target+1 [(target) -> target+1] | |
109 | 106 |
110 | 107 |
111 | 108 |
112 | 109 |
113 | 110 |