/[projet1]/users/chema/skooldaze/keyboard.s
Defence Force logotype

Diff of /users/chema/skooldaze/keyboard.s

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 609 by Chema, Thu Aug 25 16:44:54 2011 UTC revision 610 by Chema, Sat Sep 10 23:40:26 2011 UTC
# Line 55  _init_irq_routine Line 55  _init_irq_routine
55          ;setup, we need not worry about ensuring one irq event and/or right          ;setup, we need not worry about ensuring one irq event and/or right
56          ;timer period, only redirecting irq vector to our own irq handler.          ;timer period, only redirecting irq vector to our own irq handler.
57          sei          sei
58            
59    /*
60                  ; Setup DDRA, DDRB and ACR                  ; Setup DDRA, DDRB and ACR
61          lda #%11111111          lda #%11111111
62          sta via_ddra          sta via_ddra
# Line 63  _init_irq_routine Line 64  _init_irq_routine
64                  sta via_ddrb                  sta via_ddrb
65                  lda #%1000000                  lda #%1000000
66                  sta via_acr                  sta via_acr
67    */
68    
69    #ifdef ROM
70                    ; To be Oric-1 compatible, get the
71                    ; page 2 vector
72                    lda $fffe
73                    sta tmp
74                    lda $ffff
75                    sta tmp+1
76                    ldy #1
77            lda #<irq_routine
78                    sta (tmp),y
79                    iny
80            lda #>irq_routine
81                    sta (tmp),y
82    #else
83          lda #<irq_routine          lda #<irq_routine
84          sta IRQ_ADDRLO          sta $fffe
85          lda #>irq_routine          lda #>irq_routine
86          sta IRQ_ADDRHI          sta $ffff
87    #endif
88    
89                  lda #<9984*2                  lda #<9984*2
90                  sta via_t1ll                  sta via_t1ll

Legend:
Removed from v.609  
changed lines
  Added in v.610

  ViewVC Help
Powered by ViewVC 1.1.26