chiark / gitweb /
more peco part numbers and some info about pecofguess_l
[trains.git] / detpic / vectors.asm
1 ;======================================================================
2 ; VECTORS: special locations, where the PIC starts executing
3 ; after reset and interrupts
4
5         include common.inc
6
7 ;----------
8 ; reset vector
9         org     0
10         goto    vector_reset
11
12 ;----------
13 ; high priority interrupt
14         org     000008h
15
16         bt_f_if1 idloc1,idloc1_master
17         goto    master_interrupt_high
18         call    i2cs_interrupt
19         retfie_r
20
21 ;----------
22 ; low priority interrupt
23         org     000018h
24         bt_f_if1 idloc1,idloc1_master
25         goto    master_interrupt_low
26         goto    slave_interrupt_low
27
28 ;======================================================================
29
30 triplinker_size equ 0x0a00
31 ; these seem to trick the linker's rather simple algorithm
32 ; into tesselating the code into only the first part of each code
33 ; page, which should speed up programming
34
35 triplinker1 org 0x0000 + triplinker_size - 2
36         nop
37 triplinker2 org 0x2000 + triplinker_size - 2
38         nop
39
40         include final.inc