Changeset 413443e in avrstuff


Ignore:
Timestamp:
Nov 19, 2012, 11:18:32 PM (11 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
1d60f7b
Parents:
67031cd
Message:

WIP manager. Still not working.

git-svn-id: svn://pulkomandy.tk/avrstuff@80 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CPC stuff/gordon/manager/gordon.z80

    r67031cd r413443e  
    55; Start here.
    66        DI
     7
     8        LD HL, 0xC9FB
     9        LD (0x38), HL
    710
    811; Move the screen to $8000 or $0000 so we can display things to the user, while
     
    2528
    2629; ... anyway, start with erasing the sectors we need.
    27         CALL 0xBD19
    2830        LD B, 4
    2931ERASE
     
    5456
    5557        ; 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
    5764
    5865        DJNZ ERASE
     
    7683                                        ; operation on ROM. Our code is slow enough already !
    7784
     85        INC IX                                  ;       3       5
    7886        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
    8192
    8293        JR $
     
    102113
    103114        ; Select ROM 1 again and write the command to address 0xEAAA
    104         DEC C
     115        INC C
    105116        OUT (C),C
    106117        EX DE,HL
    107118        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
    108125
    109126        RET
     
    120137
    121138        ; Select ROM 2 and write 0x55 to address 0xEAAA
    122         INC C
     139        DEC C
    123140        OUT (C),C
    124141        EX DE,HL
Note: See TracChangeset for help on using the changeset viewer.