Debian Codegraph @

machines/68hc908/mc68hc908mr32.asm

raw
1
2 .PROCESSOR 68908
3
4 ;
5 ; variant specific defines
6 ;
7
8 #ifndef RAM_START
9 RAM_START .EQU $60
10 #endif
11
12 #ifndef RAM_SIZE
13 RAM_SIZE .EQU 768
14 #endif
15
16 #ifndef FLASH_START
17 FLASH_START .EQU $8000
18 #endif
19
20 #ifndef FLASH_SIZE
21 FLASH_SIZE .EQU 32256
22 #endif
23
24 #include "reg68hc908mr32.asm"
25
26 #include "macros.asm"
27
28 .macro switch_to_pll_clock
29 clr PCTL
30 bset 5,PCTL ; switch PLL on
31 bset 7,PBWC ; automatic bandwidth
32 PLL_lock_wait:
33 brclr 6,PBWC,PLL_lock_wait
34 bset 4,PCTL ; select PLL clock as system
35 .endm
36
37 ; ROM specific routines
38 WriteSerial .EQU 0xFEC3
39
40
41 .macro fw_delay
42 ldX #{1} ;[2]
43 ldA #{2} ;[2]
44 jsr MoniRomDelayLoop ;[5] // TODO: find this in the monitor code
45 .endm
46
47 .macro declare_delay
48 Delay{1}:
49 fw_delay {2},{3}
50 rts ;[4]
51 .endm
52
53