Changeset 413443e in avrstuff
- Timestamp:
- Nov 19, 2012, 11:18:32 PM (11 years ago)
- Branches:
- main
- Children:
- 1d60f7b
- Parents:
- 67031cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CPC stuff/gordon/manager/gordon.z80
r67031cd r413443e 5 5 ; Start here. 6 6 DI 7 8 LD HL, 0xC9FB 9 LD (0x38), HL 7 10 8 11 ; Move the screen to $8000 or $0000 so we can display things to the user, while … … 25 28 26 29 ; ... anyway, start with erasing the sectors we need. 27 CALL 0xBD1928 30 LD B, 4 29 31 ERASE … … 54 56 55 57 ; This will delay long enough - we need at least 25ms 56 CALL 0xBD19 58 EI 59 HALT 60 HALT 61 HALT 62 HALT 63 DI 57 64 58 65 DJNZ ERASE … … 76 83 ; operation on ROM. Our code is slow enough already ! 77 84 85 INC IX ; 3 5 78 86 INC HL ; 2 2 79 INC IX ; 3 5 80 JR NC, PROGRAM ; 3 8 87 88 LD A,H 89 OR L 90 91 JR NZ, PROGRAM ; 3 8 81 92 82 93 JR $ … … 102 113 103 114 ; Select ROM 1 again and write the command to address 0xEAAA 104 DEC C115 INC C 105 116 OUT (C),C 106 117 EX DE,HL 107 118 LD (HL), A 119 120 ; Select ROM 0xFF, which basically prevents future accesses to get to the 121 ; Flash chip. 122 DEC C 123 DEC C 124 OUT (C),C 108 125 109 126 RET … … 120 137 121 138 ; Select ROM 2 and write 0x55 to address 0xEAAA 122 INC C139 DEC C 123 140 OUT (C),C 124 141 EX DE,HL
Note:
See TracChangeset
for help on using the changeset viewer.