Home » Personal collection » Commodore disks » disk31a_turbo_assembler.d64 » e.irq setup

e.irq setup

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Commodore disks » disk31a_turbo_assembler.d64
Filename: e.irq setup
Read OK:
File size: 0178 bytes
Load address: 0000
Exec address: 0000
File contents
         SEI
         LDX #1
         STX $D01A
         DEX
         STX $DC0E
         LDA #$7F
         STA $DC0D
         LDA $DC0D
         LDA #<IRQ
         STA $0314
         LDA #>IRQ
         STA $0315
         LDA #$1B
         STA $D011

         CLI
         RTS

IRQ
         LDA #$32
         STA $D012

         LDA #$01
         STA $D019
         JMP $EA31

         seiM         ldx #1M         stx $d01aM         dexM         stx $dc0eM         lda #$7fM         sta $dc0dM         lda $dc0dM         lda #<irqM         sta $0314M         lda #>irqM         sta $0315M         lda #$1bM         sta $d011MM         cliM         rtsMMirqM         lda #$32M         sta $d012MM         lda #$01M         sta $d019M         jmp $ea31MM
00000000  20 20 20 20 20 20 20 20  20 53 45 49 0d 20 20 20  |         SEI.   |
00000010  20 20 20 20 20 20 4c 44  58 20 23 31 0d 20 20 20  |      LDX #1.   |
00000020  20 20 20 20 20 20 53 54  58 20 24 44 30 31 41 0d  |      STX $D01A.|
00000030  20 20 20 20 20 20 20 20  20 44 45 58 0d 20 20 20  |         DEX.   |
00000040  20 20 20 20 20 20 53 54  58 20 24 44 43 30 45 0d  |      STX $DC0E.|
00000050  20 20 20 20 20 20 20 20  20 4c 44 41 20 23 24 37  |         LDA #$7|
00000060  46 0d 20 20 20 20 20 20  20 20 20 53 54 41 20 24  |F.         STA $|
00000070  44 43 30 44 0d 20 20 20  20 20 20 20 20 20 4c 44  |DC0D.         LD|
00000080  41 20 24 44 43 30 44 0d  20 20 20 20 20 20 20 20  |A $DC0D.        |
00000090  20 4c 44 41 20 23 3c 49  52 51 0d 20 20 20 20 20  | LDA #<IRQ.     |
000000a0  20 20 20 20 53 54 41 20  24 30 33 31 34 0d 20 20  |    STA $0314.  |
000000b0  20 20 20 20 20 20 20 4c  44 41 20 23 3e 49 52 51  |       LDA #>IRQ|
000000c0  0d 20 20 20 20 20 20 20  20 20 53 54 41 20 24 30  |.         STA $0|
000000d0  33 31 35 0d 20 20 20 20  20 20 20 20 20 4c 44 41  |315.         LDA|
000000e0  20 23 24 31 42 0d 20 20  20 20 20 20 20 20 20 53  | #$1B.         S|
000000f0  54 41 20 24 44 30 31 31  0d 0d 20 20 20 20 20 20  |TA $D011..      |
00000100  20 20 20 43 4c 49 0d 20  20 20 20 20 20 20 20 20  |   CLI.         |
00000110  52 54 53 0d 0d 49 52 51  0d 20 20 20 20 20 20 20  |RTS..IRQ.       |
00000120  20 20 4c 44 41 20 23 24  33 32 0d 20 20 20 20 20  |  LDA #$32.     |
00000130  20 20 20 20 53 54 41 20  24 44 30 31 32 0d 0d 20  |    STA $D012.. |
00000140  20 20 20 20 20 20 20 20  4c 44 41 20 23 24 30 31  |        LDA #$01|
00000150  0d 20 20 20 20 20 20 20  20 20 53 54 41 20 24 44  |.         STA $D|
00000160  30 31 39 0d 20 20 20 20  20 20 20 20 20 4a 4d 50  |019.         JMP|
00000170  20 24 45 41 33 31 0d 0d                           | $EA31..|
00000178