Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cn3_IDSet:
- di
- ld hl,Cn2_Caller_Routine
- ld de,$9999
- ld bc,Cn2_Caller_RoutineDone-Cn2_Caller_Routine
- ldir
- #ifdef cn2_installerinflash
- in a,(6)
- ld ($9999+Cn2_caller_HomePage-Cn2_Caller_Routine+1),a ;SMC if this code is on a Flash page
- #endif cn2_installerinflash
- ld a,$9a
- ld i,a
- ld h,a
- ld l,0
- ld (hl),$99
- push hl
- pop de
- inc de
- ld bc,256
- ldir
- ld a,%00001001 ;Acknowledge and disable
- out (3),a
- ld a,%00001011 ;Set 1st timer active
- out (3),a
- ld a,%00000110 ;Slowest frequency, ~110hz
- out (4),a
- im 2
- ld a,sendCLDL
- out (0),a
- ei
- ret
Advertisement
Add Comment
Please, Sign In to add comment