     $DCB6/56502:   Reset pointer

    Jump from $DC4B, $DCE5:

    DCB6: A6 82     LDX $82         ; channel number
    DCB8: B5 A7     LDA $A7,X       ; buffer number
    DCBA: 0A        ASL             ; times 2
    DCBB: A8        TAY
    DCBC: A9 02     LDA #$02
    DCBE: 99 99 00  STA $99,Y       ; buffer pointer lo
    DCC1: B5 AE     LDA $AE,X
    DCC3: 09 80     ORA #$80        ; set bit 7
    DCC5: 95 AE     STA $AE,X
    DCC7: 0A        ASL
    DCC8: A8        TAY
    DCC9: A9 02     LDA #$02
    DCCB: 99 99 00  STA $99,Y       ; buffer pointer lo
    DCCE: A9 00     LDA #$00
    DCD0: 95 B5     STA $B5,X       ; block number lo
    DCD2: 95 BB     STA $BB,X       ; block number hi
    DCD4: A9 00     LDA #$00
    DCD6: 9D 44 02  STA $0244,X     ; end pointer
    DCD9: 60        RTS

        Previous Page / Next Page