diff clojure/com/aurellem/exp/notes.txt @ 293:4a0dbaed7078

preliminary idea for a better pre-bootstrapping program.
author Robert McIntyre <rlm@mit.edu>
date Fri, 30 Mar 2012 18:14:14 -0500
parents dc9a0060e7cb
children d35683bfc15f
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/exp/notes.txt	Thu Mar 29 18:23:20 2012 -0500
     1.2 +++ b/clojure/com/aurellem/exp/notes.txt	Fri Mar 30 18:14:14 2012 -0500
     1.3 @@ -73,6 +73,42 @@
     1.4  
     1.5  
     1.6  
     1.7 +[repeat 35 times]
     1.8 +0xFF
     1.9 +0x01
    1.10 +[end repeat]
    1.11 +
    1.12 +
    1.13 +;;; program to swap item ID and quantity at fixed address.
    1.14 +;; here target is equal to rival's thrid and fourth character
    1.15 +
    1.16 +
    1.17 +0x00
    1.18 +0x21  ;; load target into HL
    1.19 +
    1.20 +third rival's name character
    1.21 +xD5           -- target item address
    1.22 +
    1.23 +0x00
    1.24 +0x2A  ;; save (HL)=(target) to A, increment HL
    1.25 +
    1.26 +0x00
    1.27 +0x78  ;; save A to B
    1.28 +
    1.29 +0x00
    1.30 +0x3A  ;; save (target+1) to A, decrement HL
    1.31 +
    1.32 +0x00
    1.33 +0x22  ;; save A to target, increment HL [(target+1) -> target]
    1.34 +
    1.35 +0x00
    1.36 +0x78  ;; load B to A
    1.37 +
    1.38 +0x00
    1.39 +0x77  ;; load A into target+1 [(target) -> target+1]
    1.40 +
    1.41 +
    1.42 +
    1.43  
    1.44  
    1.45  
    1.46 @@ -84,8 +120,3 @@
    1.47  0xD31D - 0xD41B
    1.48       --OR--
    1.49  0xD53A - 0XD59C
    1.50 -
    1.51 -
    1.52 -
    1.53 -
    1.54 -