📄 newfanremote.lst
字号:
+ King Billion Relocating Linker 32 v2.0
Pass2
+###########################################################
+# KBLINKER Copyright 1998-1999 #
+# (c)Copyright 1998-1999 #
+# King Billion Electronics #
+###########################################################
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+Delay_Data 0000E 0002 = 2. bytes (DATA,REL,CON)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 0000E 000E delay_times
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+Delay_Code 00214 006E = 110. bytes (CODE,REL,CON)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 00248 0248 Delay_10ms
+ 00226 0226 Delay_10us
+ 0022D 022D Delay_2ms
+ 00214 0214 Delay_5us
+ 00263 0263 Delay_100ms
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+main_data 00002 000C = 12. bytes (DATA,ABS,OVR)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 00004 0004 tmp_tpl
+ 0000D 000D flag
+ 0000C 000C IRQ_source
+ 0000B 000B command
+ 00009 0009 channel_count
+ 00005 0005 access_code
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+Start_Up 00000 0010 = 16. bytes (CODE,ABS,OVR)
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+Main_Code 00020 01F4 = 500. bytes (CODE,ABS,OVR)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 001BD 01BD Scankey
+ 001E3 01E3 Look_up_Freq_table
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+Run_away 00A00 0503 = 1283. bytes (CODE,ABS,OVR)
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+SPI_Data 00010 0004 = 4. bytes (DATA,REL,CON)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 00010 0010 byte
+ 00013 0013 reg_value
+ 00012 0012 reg_name
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+SPI_Code 00282 02D3 = 723. bytes (CODE,REL,CON)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 00486 0486 SPI_Read_Reg
+ 00304 0304 Power_Down
+ 003DF 03DF Write_tx_addr_Fan
+ 0035E 035E Write_tx_addr_writer
+ 00282 0282 nRF24L01_Configuration
+ 00343 0343 Write_Command
+ 00460 0460 Select_RF_Channel
+ 00501 0501 Flush_Tx_FIFO
+ 004EE 04EE CE_Pulse
+ 0046B 046B SPI_RW_Reg
+ 004A5 04A5 SPI_RW
+ 00515 0515 Read_Rx_Pload
+ 002F2 02F2 Power_UP_Rx
+ 002E6 02E6 Power_UP_Tx
+ 00313 0313 Write_TX_Payload
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+at24c02_var 00014 0006 = 6. bytes (DATA,REL,CON)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 00014 0014 flg_eep_error
+ 00016 0016 eep_data_tmp
+ 00015 0015 cnt_eep_error
+ 00018 0018 eep_data_writen
+ 00019 0019 cnt_eep_wr_error
+ 00017 0017 eep_address
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+at24c02_code 00555 036D = 877. bytes (CODE,REL,CON)
+
+ Phy. Value Global
+ ----- ----- --------------------------------
+ 00555 0555 eep_save_data
+ 005DF 05DF eep_init
+ 0058C 058C eep_init_check
+
+Area Addr Size Decimal Bytes (Attributes)
+------------------------------- ----- ---- ------- ----- ------------
+ICETrapCode 0FA00 05E0 = 1504. bytes (CODE,ABS,CON)
+
+Files Linked [ module(s) ]
+
+G:\WORK\MDFan\New黄庆杯改写\Delay.obj [ Delay.asm ]
+G:\WORK\MDFan\New黄庆杯改写\main.obj [ main.asm ]
+G:\WORK\MDFan\New黄庆杯改写\SPI.obj [ SPI.asm ]
+G:\WORK\MDFan\New黄庆杯改写\EEPROM_RW.obj [ EEPROM_RW.asm ]
+
+User Global Definitions
+
+SP_INIT=0x7F
+
+###########################################################
+### g:\work\mdfan\new黄庆杯改写\delay.asl ###
+###########################################################
+ 1 ;--------------------------------------------------
+ 2 ;R=150k
+ 3 ;machine clock: 6MHz
+ 4 ;instruction period: 0.25us
+ 5 ;--------------------------------------------------
+ 6 ;-----------Variables------------
+ 7 .area Delay_Data(data)
+B 00 01
000E 8 delay_times:: .ds 2
+ 9 ;-------------------------------
+ 10 .area Delay_Code(code)
+B 00 02
0214 11 Delay_5us::
0214 00 12 nop
0215 00 13 nop
0216 00 14 nop
0217 00 15 nop
0218 00 16 nop
0219 00 17 nop
021A 00 18 nop
021B 00 19 nop
021C 00 20 nop
021D 00 21 nop
021E 00 22 nop
021F 00 23 nop
0220 00 24 nop
0221 00 25 nop
0222 00 26 nop
0223 00 27 nop
0224 00 28 nop
0225 24 29 ret
+ 30 ;--------------------------
0226 31 Delay_10us::
0226 20 02 14 32 call Delay_5us
0229 20 02 14 33 call Delay_5us
022C 24 34 ret
+ 35 ;------------------------
022D 36 Delay_2ms::
022D F3 02 37 lda #2
022F FD 0E 38 sta delay_times
0231 F3 FF 39 lda #0xff
0233 FD 0F 40 sta delay_times+1
0235 41 Delay_2ms_Loop:
0235 F1 0F 42 lda delay_times+1
0237 AB 01 43 suba #1
0239 FD 0F 44 sta delay_times+1
023B 04 02 35 45 brc Delay_2ms_Loop
023E F1 0E 46 lda delay_times
0240 AB 01 47 suba #1
0242 FD 0E 48 sta delay_times
0244 04 02 35 49 brc Delay_2ms_Loop
0247 24 50 ret
+ 51
+ 52 ;--------------------------
0248 53 Delay_10ms::
0248 F3 12 54 lda #0x12
024A FD 0E 55 sta delay_times
024C F3 FF 56 lda #0xff
024E FD 0F 57 sta delay_times+1
0250 58 Delay_10ms_Loop:
0250 F1 0F 59 lda delay_times+1
0252 AB 01 60 suba #1
0254 FD 0F 61 sta delay_times+1
0256 04 02 50 62 brc Delay_10ms_Loop ;9*256*0.25us=576us
0259 F1 0E 63 lda delay_times
025B AB 01 64 suba #1
025D FD 0E 65 sta delay_times
025F 04 02 50 66 brc Delay_10ms_Loop ;17*576us=9.7ms
0262 24 67 ret
+ 68
0263 69 Delay_100ms::
0263 20 02 48 70 call Delay_10ms
0266 20 02 48 71 call Delay_10ms
0269 20 02 48 72 call Delay_10ms
026C 20 02 48 73 call Delay_10ms
026F 20 02 48 74 call Delay_10ms
0272 20 02 48 75 call Delay_10ms
0275 20 02 48 76 call Delay_10ms
0278 20 02 48 77 call Delay_10ms
027B 20 02 48 78 call Delay_10ms
027E 20 02 48 79 call Delay_10ms
0281 24 80 ret
+ 81 ;-----------------------------------------------
+ 82
+ 83
+
+Symbol Table
+
+ 2 Delay_100ms 004F GR
+ 2 Delay_10ms 0034 GR
+ 2 Delay_10ms_Loop 003C R
+ 2 Delay_10us 0012 GR
+ 2 Delay_2ms 0019 GR
+ 2 Delay_2ms_Loop 0021 R
+ 2 Delay_5us 0000 GR
+ 1 delay_times 0000 GR
+
+
+Area Table
+
+ 0 . size 0 flags 0
+ 1 Delay_Data size 2 flags 2
+ 2 Delay_Code size 6E flags 1
+###########################################################
+### g:\work\mdfan\new黄庆杯改写\main.asl ###
+###########################################################
+ 1 ;***********************************************
+ 2 ; Function Description: MD Fan Remote Controller Firmware New Edition
+ 3 ; Written by: Zhou Jia
+ 4 ; IC body: KBPC004
+ 5 ; External RC oscilator: 6MHz(R=150K)
+ 6 ; Interrupt Source: External Interrupt PC0(RF module IRQ),PB[3:1](key pressed interrupt)
+ 7 ;***********************************************
+ 10 ;-----------constants------------------
+ 11 ;c_ram equ 0x1d
0236 12 c_ram = 0x22 ;Don't clear the whole RAM,reserve some bytes for SP
0232 13 c_ext_int_enable = 0x1e
0214 14 c_ext_int_fall_edge = 0x00
0313 15 c_port_input_ctrl = 0xff
+ 16 ;c_portb_input_ctrl == 0xff
02A4 17 c_globle_int_enable = 0x90
0294 18 c_sleep_ctrl = 0x80
0295 19 c_porta_dir_ctrl = 0x81
+ 20 ;c_porta_input_ctrl = 0xff
0224 21 c_irq_int = 0x10
0222 22 c_all_key_high = 0x0e
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -