1 ;======================================================================
2 ; MAIN PROGRAM AND GLUE
23 bs_f RCON, IPEN ; interrupt priorities
33 ; handles i2c interrupt using i2cm_interrupt[_definite],
34 ; according to the rules for <something>_intrl.
37 call i2cm_interrupt_definite
42 mov_ff isr_low_save_stkptr, STKPTR
45 ;======================================================================
46 ; MASTER/SLAVE deviations
50 ; Either transmits the message to the master, or if we are the master,
51 ; handles it as an incoming message from the notional `slave 0'.
54 bt_f_if1 idloc1,idloc1_master
55 goto loopback_read_byte
56 goto slave_add_short_message
58 ;======================================================================