📄 mb90340.asm
字号:
__prlla .res.b 1 ;007914
PRLLA .equ 0x7914
__prlha .res.b 1 ;007915
PRLHA .equ 0x7915
__prlb .res.b 2 ;007916
PRLB .equ 0x7916
.org 0x7916
__prllb .res.b 1 ;007916
PRLLB .equ 0x7916
__prlhb .res.b 1 ;007917
PRLHB .equ 0x7917
__prlcd .res.b 4 ;007918
PRLCD .equ 0x7918
.org 0x7918
__prlc .res.b 2 ;007918
PRLC .equ 0x7918
.org 0x7918
__prllc .res.b 1 ;007918
PRLLC .equ 0x7918
__prlhc .res.b 1 ;007919
PRLHC .equ 0x7919
__prld .res.b 2 ;00791A
PRLD .equ 0x791A
.org 0x791A
__prlld .res.b 1 ;00791A
PRLLD .equ 0x791A
__prlhd .res.b 1 ;00791B
PRLHD .equ 0x791B
__prlef .res.b 4 ;00791C
PRLEF .equ 0x791C
.org 0x791C
__prle .res.b 2 ;00791C
PRLE .equ 0x791C
.org 0x791C
__prlle .res.b 1 ;00791C
PRLLE .equ 0x791C
__prlhe .res.b 1 ;00791D
PRLHE .equ 0x791D
__prlf .res.b 2 ;00791E
PRLF .equ 0x791E
.org 0x791E
__prllf .res.b 1 ;00791E
PRLLF .equ 0x791E
__prlhf .res.b 1 ;00791F
PRLHF .equ 0x791F
__ipcp0 .res.b 2 ;007920 /* Input Capture */
IPCP0 .equ 0x7920
__ipcp1 .res.b 2 ;007922
IPCP1 .equ 0x7922
__ipcp2 .res.b 2 ;007924
IPCP2 .equ 0x7924
__ipcp3 .res.b 2 ;007926
IPCP3 .equ 0x7926
__ipcp4 .res.b 2 ;007928
IPCP4 .equ 0x7928
__ipcp5 .res.b 2 ;00792A
IPCP5 .equ 0x792A
__ipcp6 .res.b 2 ;00792C
IPCP6 .equ 0x792C
__ipcp7 .res.b 2 ;00792E
IPCP7 .equ 0x792E
__occp0 .res.b 2 ;007930 /* Output Compare */
OCCP0 .equ 0x7930
__occp1 .res.b 2 ;007932
OCCP1 .equ 0x7932
__occp2 .res.b 2 ;007934
OCCP2 .equ 0x7934
__occp3 .res.b 2 ;007936
OCCP3 .equ 0x7936
__occp4 .res.b 2 ;007938
OCCP4 .equ 0x7938
__occp5 .res.b 2 ;00793A
OCCP5 .equ 0x793A
__occp6 .res.b 2 ;00793C
OCCP6 .equ 0x793C
__occp7 .res.b 2 ;00793E
OCCP7 .equ 0x793E
__tcdt0 .res.b 2 ;007940 /* IO Timer */
TCDT0 .equ 0x7940
__tccs0 .res.b 2 ;007942
TCCS0 .equ 0x7942
.org 0x7942
__tccsl0 .res.b 1 ;007942
TCCSL0 .equ 0x7942
__tccsh0 .res.b 1 ;007943
TCCSH0 .equ 0x7943
__tcdt1 .res.b 2 ;007944
TCDT1 .equ 0x7944
__tccs1 .res.b 2 ;007946
TCCS1 .equ 0x7946
.org 0x7946
__tccsl1 .res.b 1 ;007946
TCCSL1 .equ 0x7946
__tccsh1 .res.b 1 ;007947
TCCSH1 .equ 0x7947
__tmr0 .res.b 2 ;007948 /* Timer Reload Register */
TMR0 .equ 0x7948
.org 0x7948
__tmrlr0 .res.b 2 ;007948
TMRLR0 .equ 0x7948
__tmr1 .res.b 2 ;00794A
TMR1 .equ 0x794A
.org 0x794A
__tmrlr1 .res.b 2 ;00794A
TMRLR1 .equ 0x794A
__tmr2 .res.b 2 ;00794C
TMR2 .equ 0x794C
.org 0x794C
__tmrlr2 .res.b 2 ;00794C
TMRLR2 .equ 0x794C
__tmr3 .res.b 2 ;00794E
TMR3 .equ 0x794E
.org 0x794E
__tmrlr3 .res.b 2 ;00794E
TMRLR3 .equ 0x794E
__smr3 .res.b 1 ;007950 /* UART3 */
SMR3 .equ 0x7950
__scr3 .res.b 1 ;007951
SCR3 .equ 0x7951
__rdr3 .res.b 1 ;007952
RDR3 .equ 0x7952
.org 0x7952
__tdr3 .res.b 1 ;007952
TDR3 .equ 0x7952
__ssr3 .res.b 1 ;007953
SSR3 .equ 0x7953
__eccr3 .res.b 1 ;007954
ECCR3 .equ 0x7954
__escr3 .res.b 1 ;007955
ESCR3 .equ 0x7955
__bgr3 .res.b 2 ;007956
BGR3 .equ 0x7956
.org 0x7956
__bgr30 .res.b 1 ;007956
BGR30 .equ 0x7956
__bgr31 .res.b 1 ;007957
BGR31 .equ 0x7957
.org 0x796C
__clkr .res.b 1 ;00796C /* Clock Monitor */
CLKR .equ 0x796C
.org 0x796E
__cdmr .res.b 1 ;00796E /* CAN Direct Mode */
CDMR .equ 0x796E
__canswr .res.b 1 ;00796F
CANSWR .equ 0x796F
__ibsr0 .res.b 1 ;007970 /* IIC Interface 2 */
IBSR0 .equ 0x7970
__ibcr0 .res.b 1 ;007971
IBCR0 .equ 0x7971
__itba0 .res.b 2 ;007972
ITBA0 .equ 0x7972
.org 0x7972
__itbal0 .res.b 1 ;007972
ITBAL0 .equ 0x7972
__itbah0 .res.b 1 ;007973
ITBAH0 .equ 0x7973
__itmk0 .res.b 2 ;007974
ITMK0 .equ 0x7974
.org 0x7974
__itmkl0 .res.b 1 ;007974
ITMKL0 .equ 0x7974
__itmkh0 .res.b 1 ;007975
ITMKH0 .equ 0x7975
__isba0 .res.b 1 ;007976
ISBA0 .equ 0x7976
__ismk0 .res.b 1 ;007977
ISMK0 .equ 0x7977
__idar0 .res.b 1 ;007978
IDAR0 .equ 0x7978
.org 0x797B
__iccr0 .res.b 1 ;00797B
ICCR0 .equ 0x797B
.org 0x7980
__ibsr1 .res.b 1 ;007980 /* IIC Interface 1 */
IBSR1 .equ 0x7980
__ibcr1 .res.b 1 ;007981
IBCR1 .equ 0x7981
__itba1 .res.b 2 ;007982
ITBA1 .equ 0x7982
.org 0x7982
__itbal1 .res.b 1 ;007982
ITBAL1 .equ 0x7982
__itbah1 .res.b 1 ;007983
ITBAH1 .equ 0x7983
__itmk1 .res.b 2 ;007984
ITMK1 .equ 0x7984
.org 0x7984
__itmkl1 .res.b 1 ;007984
ITMKL1 .equ 0x7984
__itmkh1 .res.b 1 ;007985
ITMKH1 .equ 0x7985
__isba1 .res.b 1 ;007986
ISBA1 .equ 0x7986
__ismk1 .res.b 1 ;007987
ISMK1 .equ 0x7987
__idar1 .res.b 1 ;007988
IDAR1 .equ 0x7988
.org 0x798B
__iccr1 .res.b 1 ;00798B
ICCR1 .equ 0x798B
.org 0x79E0
__padr0_l .res.b 1 ;0079E0 /* ROM CORRECTION */
PADR0_L .equ 0x79E0
__padr0_m .res.b 1 ;0079E1
PADR0_M .equ 0x79E1
__padr0_h .res.b 1 ;0079E2
PADR0_H .equ 0x79E2
__padr1_l .res.b 1 ;0079E3
PADR1_L .equ 0x79E3
__padr1_m .res.b 1 ;0079E4
PADR1_M .equ 0x79E4
__padr1_h .res.b 1 ;0079E5
PADR1_H .equ 0x79E5
__padr2_l .res.b 1 ;0079E6
PADR2_L .equ 0x79E6
__padr2_m .res.b 1 ;0079E7
PADR2_M .equ 0x79E7
__padr2_h .res.b 1 ;0079E8
PADR2_H .equ 0x79E8
.org 0x79F0
__padr3_l .res.b 1 ;0079F0
PADR3_L .equ 0x79F0
__padr3_m .res.b 1 ;0079F1
PADR3_M .equ 0x79F1
__padr3_h .res.b 1 ;0079F2
PADR3_H .equ 0x79F2
__padr4_l .res.b 1 ;0079F3
PADR4_L .equ 0x79F3
__padr4_m .res.b 1 ;0079F4
PADR4_M .equ 0x79F4
__padr4_h .res.b 1 ;0079F5
PADR4_H .equ 0x79F5
__padr5_l .res.b 1 ;0079F6
PADR5_L .equ 0x79F6
__padr5_m .res.b 1 ;0079F7
PADR5_M .equ 0x79F7
__padr5_h .res.b 1 ;0079F8
PADR5_H .equ 0x79F8
.org 0x7A00
__canm0 .res.b 0x40 ;007A00 /* CAN message buffer 0 */
CANM0 .equ 0x7A00
___dmyc0 .res.b 0x40 ;007A40
_DMYC0 .equ 0x7A40
___dmyc1 .res.b 0x40 ;007A80
_DMYC1 .equ 0x7A80
___dmyc2 .res.b 0x40 ;007AC0
_DMYC2 .equ 0x7AC0
__canh0 .res.b 0x1C ;007B00 /* Status and control register, higher part */
CANH0 .equ 0x7B00
.org 0x7C00
__canm1 .res.b 0x40 ;007C00 /* CAN message buffer 1 */
CANM1 .equ 0x7C00
___dmyc3 .res.b 0x40 ;007C40
_DMYC3 .equ 0x7C40
___dmyc4 .res.b 0x40 ;007C80
_DMYC4 .equ 0x7C80
___dmyc5 .res.b 0x40 ;007CC0
_DMYC5 .equ 0x7CC0
__canh1 .res.b 0x1C ;007D00 /* Status and control register, higher part */
CANH1 .equ 0x7D00
.org 0x7E00
__canm2 .res.b 0x40 ;007E00 /* CAN message buffer 2 */
CANM2 .equ 0x7E00
___dmyc6 .res.b 0x40 ;007E40
_DMYC6 .equ 0x7E40
___dmyc7 .res.b 0x40 ;007E80
_DMYC7 .equ 0x7E80
___dmyc8 .res.b 0x40 ;007EC0
_DMYC8 .equ 0x7EC0
__canh2 .res.b 0x1C ;007F00 /* Status and control register, higher part */
CANH2 .equ 0x7F00
.org 0x7FFF
___endio .res.b 1 ;007FFF
_ENDIO .equ 0x7FFF
; /* include : security.asm */
#ifdef SECURITY_FEATURE
#if SECURITY_FEATURE == 1
; if Security feature is available,
; check for possible security address (64KB, 128KB, 256KB, 384KB or 512 KB device)
#if SECURITY_ADDRESS == 0xFF0000 \
|| SECURITY_ADDRESS == 0xFE0000 \
|| SECURITY_ADDRESS == 0xFC0000 \
|| SECURITY_ADDRESS == 0xF90000 \
|| SECURITY_ADDRESS == 0xF80000
#ifdef SECURITY_ENABLE
#if SECURITY_ENABLE == 0
.section SECURITY, locate = SECURITY_ADDRESS
.DATA.W 0xFF55 ; Security DISABLED
#elif SECURITY_ENABLE == 1
.section SECURITY, locate = SECURITY_ADDRESS
.DATA.W 0x01FF ; Security ENABLED
#else ; see description below
#error "Invalid value of SECURITY_ENABLE" ; see description below
#endif
#else ; see description below
#error "SECURITY_ENABLE not defined"
#endif
#else ; see description below
#error "Invalid value of SECURITY_ADDRESS"
#endif
#elif SECURITY_FEATURE != 0 ; see description below
#error "Invalid value of SECURITY_FEATURE"
#endif
#else ; see description below
#error "SECURITY_FEATURE not defined"
#endif
; HOW TO HANDLE THE SECURITY-FEAUTURE ?
;
; Security-Feature means that the contents of the (Flash-)ROM
; can be prevent from (unauthorized) read-out.
; Devices of microcontroller-families with Security-Feature
; require three manual definitions within SWB-menu "SetProject->Assembler->DefineMacro" :
;
; SECURITY_FEATURE 0 => NO 1 => YES <<< Does the device support the Security-Feature ?
;
; SECURITY_ADDRESS 0x??0000 <<< Define Security Address
; 0xFF0000 for 64KB device
; 0xFE0000 for 128KB device
; 0xFC0000 for 256KB device
; 0xF90000 for 384KB device
; 0xF80000 for 512KB device
;
; SECURITY_ENABLE 0 => NO 1 => YES <<< Enable / Disable Security Feature
;
; The Security-Feature is ENABLED
; if
; the device supports the Security-Feature generally
; and the define SECURITY_FEATURE is set to 1
; and the correct SECURITY_ADDRESS is defined
; and the Security-mechanism is enabled by SECURITY_ENABLE set to 1
;
;
; HOW DOES THE SECURITY-FEATURE WORK ?
;
; In case that a device supports the Security-Feature
; the lower two bytes of the (Flash-)ROM are reserved
; for controlling the security mechanism.
; If the first two bytes are set 0x01FF, the Security-Feature is enabled.
; If the first two bytes are set 0xFF55, the Security-Feature is disabled
; If the Security-Feauture is enabled the (Flash-)ROM can not be read-out anymore.
;
; NOTE:
; If a device does not support the Security-Feature
; then set SECURITY_FEATURE 0
; The setting for SECURITY_ADDRESS and SECURITY_ENABLE becomes invalid.
;
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -