Projet

Général

Profil

« Précédent | Suivant » 

Révision 876

Ajouté par ayfadirik il y a presque 4 ans

TPb2 versionne

Voir les différences:

branch/Aya/sp4b2/SP4b2.tws
[HIMDBVersion]
2.0
[DATABASE_VERSION]
"1.2"
[CURRENT_PROJECT]
"SP4b2"
[GENERAL_DATA]
[BREAKPOINTS]
[OPEN_WORKSPACE_FILES]
"D:\Aya\sp4b2\SP4b2\SP4b2.c"
[WORKSPACE_FILE_STATES]
"D:\Aya\sp4b2\SP4b2\SP4b2.c" -8 -31 1511 604 1 0
[LOADED_PROJECTS]
"SP4b2"
[END]
branch/Aya/sp4b2/SP4b2/SP4b2.tps
[HIMDBVersion]
2.0
[DATABASE_VERSION]
"1.1"
[SESSIONS_]
"DefaultSession"
"SessionM32C_E8a_SYSTEM"
"SessionM32C_Simulator"
[CONFIGURATIONS]
"Debug"
"Debug_M32C_E8a_SYSTEM"
"Debug_M32C_Simulator"
"Release"
[CURRENT_CONFIGURATION]
"Debug"
[CURRENT_SESSION]
"SessionM32C_E8a_SYSTEM"
[GENERAL_DATA_PROJECT]
[GENERAL_DATA_CONFIGURATION_Debug]
"PROJECT_FILES_MODIFIED_DATA_TAG" "FALSE"
[SESSIONS_Debug]
"DefaultSession"
"SessionM32C_E8a_SYSTEM"
"SessionM32C_Simulator"
[GENERAL_DATA_CONFIGURATION_Debug_M32C_E8a_SYSTEM]
"PROJECT_FILES_MODIFIED_DATA_TAG" "TRUE"
[SESSIONS_Debug_M32C_E8a_SYSTEM]
"DefaultSession"
"SessionM32C_E8a_SYSTEM"
"SessionM32C_Simulator"
[GENERAL_DATA_CONFIGURATION_Debug_M32C_Simulator]
"PROJECT_FILES_MODIFIED_DATA_TAG" "TRUE"
[SESSIONS_Debug_M32C_Simulator]
"DefaultSession"
"SessionM32C_E8a_SYSTEM"
"SessionM32C_Simulator"
[GENERAL_DATA_CONFIGURATION_Release]
"PROJECT_FILES_MODIFIED_DATA_TAG" "TRUE"
[SESSIONS_Release]
"DefaultSession"
"SessionM32C_E8a_SYSTEM"
"SessionM32C_Simulator"
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_M32C_E8a_SYSTEM_SessionM32C_Simulator]
[GENERAL_DATA_SESSION_SessionM32C_Simulator]
[GENERAL_DATA_SESSION_DefaultSession]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_M32C_E8a_SYSTEM_DefaultSession]
[GENERAL_DATA_CONFIGURATION_SESSION_Release_SessionM32C_Simulator]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_DefaultSession]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_M32C_Simulator_SessionM32C_Simulator]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_M32C_Simulator_DefaultSession]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_M32C_E8a_SYSTEM_SessionM32C_E8a_SYSTEM]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_SessionM32C_E8a_SYSTEM]
[GENERAL_DATA_CONFIGURATION_SESSION_Release_DefaultSession]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_SessionM32C_Simulator]
[GENERAL_DATA_SESSION_SessionM32C_E8a_SYSTEM]
[GENERAL_DATA_CONFIGURATION_SESSION_Debug_M32C_Simulator_SessionM32C_E8a_SYSTEM]
[GENERAL_DATA_CONFIGURATION_SESSION_Release_SessionM32C_E8a_SYSTEM]
[END]
branch/Aya/sp4b2/SP4b2/sect308.inc
;*******************************************************************************
;
; C Compiler for M16C/80
; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
; and Renesas Solutions Corporation. All rights reserved.
;
;
; sect30.inc : section definition
; This program is applicable when using the basic I/O library
;
; $Date: 2005/10/12 07:54:36 $
; $Revision: 1.24 $
;
;******************************************************************************
;---------------------------------------------------------------
;
; Arrangement of section
;
;---------------------------------------------------------------
; Near RAM data area
;---------------------------------------------------------------
; SBDATA area
.section data_SE,DATA
.org 400H
data_SE_top:
; for NSD
.section data_MON1_SE,DATA
data_MON1_SE_top:
.section data_MON2_SE,DATA
data_MON2_SE_top:
.section data_MON3_SE,DATA
data_MON3_SE_top:
.section data_MON4_SE,DATA
data_MON4_SE_top:
.section bss_SE,DATA,ALIGN
bss_SE_top:
; for NSD
.section bss_MON1_SE,DATA,ALIGN
bss_MON1_SE_top:
.section bss_MON2_SE,DATA,ALIGN
bss_MON2_SE_top:
.section bss_MON3_SE,DATA,ALIGN
bss_MON3_SE_top:
.section bss_MON4_SE,DATA,ALIGN
bss_MON4_SE_top:
.section data_SO,DATA
data_SO_top:
; for NSD
.section data_MON1_SO,DATA
data_MON1_SO_top:
.section data_MON2_SO,DATA
data_MON2_SO_top:
.section data_MON3_SO,DATA
data_MON3_SO_top:
.section data_MON4_SO,DATA
data_MON4_SO_top:
.section bss_SO,DATA
bss_SO_top:
; for NSD
.section bss_MON1_SO,DATA
bss_MON1_SO_top:
.section bss_MON2_SO,DATA
bss_MON2_SO_top:
.section bss_MON3_SO,DATA
bss_MON3_SO_top:
.section bss_MON4_SO,DATA
bss_MON4_SO_top:
; near RAM area
.section data_NE,DATA,ALIGN
data_NE_top:
; for NSD
.section data_MON1_E,DATA,ALIGN
data_MON1_E_top:
.section data_MON2_E,DATA,ALIGN
data_MON2_E_top:
.section data_MON3_E,DATA,ALIGN
data_MON3_E_top:
.section data_MON4_E,DATA,ALIGN
data_MON4_E_top:
.section bss_NE,DATA,ALIGN
bss_NE_top:
; for NSD
.section bss_MON1_E,DATA,ALIGN
bss_MON1_E_top:
.section bss_MON2_E,DATA,ALIGN
bss_MON2_E_top:
.section bss_MON3_E,DATA,ALIGN
bss_MON3_E_top:
.section bss_MON4_E,DATA,ALIGN
bss_MON4_E_top:
.section data_NO,DATA
data_NO_top:
; for NSD
.section data_MON1_O,DATA
data_MON1_O_top:
.section data_MON2_O,DATA
data_MON2_O_top:
.section data_MON3_O,DATA
data_MON3_O_top:
.section data_MON4_O,DATA
data_MON4_O_top:
.section bss_NO,DATA
bss_NO_top:
; for NSD
.section bss_MON1_O,DATA
bss_MON1_O_top:
.section bss_MON2_O,DATA
bss_MON2_O_top:
.section bss_MON3_O,DATA
bss_MON3_O_top:
.section bss_MON4_O,DATA
bss_MON4_O_top:
;---------------------------------------------------------------
; Stack area
;---------------------------------------------------------------
.section stack,DATA,ALIGN
.blkb STACKSIZE
.align
stack_top:
.blkb ISTACKSIZE
.align
istack_top:
;---------------------------------------------------------------
; heap section
;---------------------------------------------------------------
.if __HEAP__ != 1
.section heap,DATA
heap_top:
.blkb HEAPSIZE
.endif
;---------------------------------------------------------------
; Near ROM data area
;---------------------------------------------------------------
.section rom_NE,ROMDATA,ALIGN
rom_NE_top:
.section rom_NO,ROMDATA
rom_NO_top:
;---------------------------------------------------------------
; Far RAM data area
;---------------------------------------------------------------
; SBDATA area for #pragma SB16DATA
; .section data_SE,DATA
; .org 10000H
;data_SE_top:
; for NSD
; .section data_MON1_SE,DATA
;data_MON1_SE_top:
; .section data_MON2_SE,DATA
;data_MON2_SE_top:
; .section data_MON3_SE,DATA
;data_MON3_SE_top:
; .section data_MON4_SE,DATA
;data_MON4_SE_top:
;
; .section bss_SE,DATA,ALIGN
;bss_SE_top:
; for NSD
; .section bss_MON1_SE,DATA,ALIGN
;bss_MON1_SE_top:
; .section bss_MON2_SE,DATA,ALIGN
;bss_MON2_SE_top:
; .section bss_MON3_SE,DATA,ALIGN
;bss_MON3_SE_top:
; .section bss_MON4_SE,DATA,ALIGN
;bss_MON4_SE_top:
;
; .section data_SO,DATA
;data_SO_top:
; for NSD
; .section data_MON1_SO,DATA
;data_MON1_SO_top:
; .section data_MON2_SO,DATA
;data_MON2_SO_top:
; .section data_MON3_SO,DATA
;data_MON3_SO_top:
; .section data_MON4_SO,DATA
;data_MON4_SO_top:
;
; .section bss_SO,DATA
;bss_SO_top:
; for NSD
; .section bss_MON1_SO,DATA
;bss_MON1_SO_top:
; .section bss_MON2_SO,DATA
;bss_MON2_SO_top:
; .section bss_MON3_SO,DATA
;bss_MON3_SO_top:
; .section bss_MON4_SO,DATA
;bss_MON4_SO_top:
;
; .section data_6E,DATA,ALIGN
;data_6E_top:
; for NSD
; .section data_MON1_6E,DATA,ALIGN
;data_MON1_6E_top:
; .section data_MON2_6E,DATA,ALIGN
;data_MON2_6E_top:
; .section data_MON3_6E,DATA,ALIGN
;data_MON3_6E_top:
; .section data_MON4_6E,DATA,ALIGN
;data_MON4_6E_top:
;
; .section bss_6E,DATA,ALIGN
;bss_6E_top:
; for NSD
; .section bss_MON1_6E,DATA,ALIGN
;bss_MON1_6E_top:
; .section bss_MON2_6E,DATA,ALIGN
;bss_MON2_6E_top:
; .section bss_MON3_6E,DATA,ALIGN
;bss_MON3_6E_top:
; .section bss_MON4_6E,DATA,ALIGN
;bss_MON4_6E_top:
;
; .section data_6O,DATA
;data_6O_top:
; for NSD
; .section data_MON1_6O,DATA
;data_MON1_6O_top:
; .section data_MON2_6O,DATA
;data_MON2_6O_top:
; .section data_MON3_6O,DATA
;data_MON3_6O_top:
; .section data_MON4_6O,DATA
;data_MON4_6O_top:
;
; .section bss_6O,DATA
;bss_6O_top:
; for NSD
; .section bss_MON1_6O,DATA
;bss_MON1_6O_top:
; .section bss_MON2_6O,DATA
;bss_MON2_6O_top:
; .section bss_MON3_6O,DATA
;bss_MON3_6O_top:
; .section bss_MON4_6O,DATA
;bss_MON4_6O_top:
;
.section data_FE,DATA
.org 20000H
data_FE_top:
; for NSD
; .section data_MON1_E,DATA
;data_MON1_E_top:
; .section data_MON2_E,DATA
;data_MON2_E_top:
; .section data_MON3_E,DATA
;data_MON3_E_top:
; .section data_MON4_E,DATA
;data_MON4_E_top:
.section bss_FE,DATA,ALIGN
bss_FE_top:
; for NSD
; .section bss_MON1_E,DATA,ALIGN
;bss_MON1_E_top:
; .section bss_MON2_E,DATA,ALIGN
;bss_MON2_E_top:
; .section bss_MON3_E,DATA,ALIGN
;bss_MON3_E_top:
; .section bss_MON4_E,DATA,ALIGN
;bss_MON4_E_top:
.section data_FO,DATA
data_FO_top:
; for NSD
; .section data_MON1_O,DATA
;data_MON1_O_top:
; .section data_MON2_O,DATA
;data_MON2_O_top:
; .section data_MON3_O,DATA
;data_MON3_O_top:
; .section data_MON4_O,DATA
;data_MON4_O_top:
.section bss_FO,DATA
bss_FO_top:
; for NSD
; .section bss_MON1_O,DATA
;bss_MON1_O_top:
; .section bss_MON2_O,DATA
;bss_MON2_O_top:
; .section bss_MON3_O,DATA
;bss_MON3_O_top:
; .section bss_MON4_O,DATA
;bss_MON4_O_top:
;---------------------------------------------------------------
; Far ROM data area
;---------------------------------------------------------------
.section rom_FE,ROMDATA
.org 0FE0000H
rom_FE_top:
.section rom_FO,ROMDATA
rom_FO_top:
;---------------------------------------------------------------
; Initial data of 'data' section
;---------------------------------------------------------------
.section data_SEI,ROMDATA
data_SEI_top:
; for NSD
.section data_MON1_SEI,ROMDATA
data_MON1_SEI_top:
.section data_MON2_SEI,ROMDATA
data_MON2_SEI_top:
.section data_MON3_SEI,ROMDATA
data_MON3_SEI_top:
.section data_MON4_SEI,ROMDATA
data_MON4_SEI_top:
.section data_SOI,ROMDATA
data_SOI_top:
; for NSD
.section data_MON1_SOI,ROMDATA
data_MON1_SOI_top:
.section data_MON2_SOI,ROMDATA
data_MON2_SOI_top:
.section data_MON3_SOI,ROMDATA
data_MON3_SOI_top:
.section data_MON4_SOI,ROMDATA
data_MON4_SOI_top:
; .section data_6EI,ROMDATA
;data_6EI_top:
; for NSD
; .section data_MON1_6EI,ROMDATA
;data_MON1_6EI_top:
; .section data_MON2_6EI,ROMDATA
;data_MON2_6EI_top:
; .section data_MON3_6EI,ROMDATA
;data_MON3_6EI_top:
; .section data_MON4_6EI,ROMDATA
;data_MON4_6EI_top:
;
; .section data_6OI,ROMDATA
;data_6OI_top:
; for NSD
; .section data_MON1_6OI,ROMDATA
;data_MON1_6OI_top:
; .section data_MON2_6OI,ROMDATA
;data_MON2_6OI_top:
; .section data_MON3_6OI,ROMDATA
;data_MON3_6OI_top:
; .section data_MON4_6OI,ROMDATA
;data_MON4_6OI_top:
.section data_NEI,ROMDATA
data_NEI_top:
; for NSD
.section data_MON1_EI,ROMDATA
data_MON1_EI_top:
.section data_MON2_EI,ROMDATA
data_MON2_EI_top:
.section data_MON3_EI,ROMDATA
data_MON3_EI_top:
.section data_MON4_EI,ROMDATA
data_MON4_EI_top:
.section data_NOI,ROMDATA
data_NOI_top:
; for NSD
.section data_MON1_OI,ROMDATA
data_MON1_OI_top:
.section data_MON2_OI,ROMDATA
data_MON2_OI_top:
.section data_MON3_OI,ROMDATA
data_MON3_OI_top:
.section data_MON4_OI,ROMDATA
data_MON4_OI_top:
.section data_FEI,ROMDATA
data_FEI_top:
; for NSD
; .section data_MON1_EI,ROMDATA
;data_MON1_EI_top:
; .section data_MON2_EI,ROMDATA
;data_MON2_EI_top:
; .section data_MON3_EI,ROMDATA
;data_MON3_EI_top:
; .section data_MON4_EI,ROMDATA
;data_MON4_EI_top:
.section data_FOI,ROMDATA
data_FOI_top:
; for NSD
; .section data_MON1_OI,ROMDATA
;data_MON1_OI_top:
; .section data_MON2_OI,ROMDATA
;data_MON2_OI_top:
; .section data_MON3_OI,ROMDATA
;data_MON3_OI_top:
; .section data_MON4_OI,ROMDATA
;data_MON4_OI_top:
;---------------------------------------------------------------
; code area
;---------------------------------------------------------------
.section interrupt,ALIGN
.section program,ALIGN
.section program_S
.org 0FF0000H
;---------------------------------------------------------------
; variable vector section
;---------------------------------------------------------------
.section vector,ROMDATA ; variable vector table
.org VECTOR_ADR
.if __MVT__ == 0
.lword dummy_int ; BRK (software int 0)
.lword dummy_int ;
.lword dummy_int ;
.lword dummy_int ;
.lword dummy_int ;
.lword dummy_int ;
.lword dummy_int ;
.lword dummy_int ;
.lword dummy_int ; DMA0 (software int 8)
.lword dummy_int ; DMA1 (software int 9)
.lword dummy_int ; DMA2 (software int 10)
.lword dummy_int ; DMA3 (software int 11)
.lword dummy_int ; TIMER A0 (software int 12)
.lword dummy_int ; TIMER A1 (software int 13)
.lword dummy_int ; TIMER A2 (software int 14)
.lword dummy_int ; TIMER A3 (software int 15)
.lword dummy_int ; TIMER A4 (software int 16)
.lword dummy_int ; uart0 trance (software int 17)
.lword dummy_int ; uart0 receive (software int 18)
.lword dummy_int ; uart1 trance (software int 19)
.lword dummy_int ; uart1 receive (software int 20)
.lword dummy_int ; TIMER B0 (software int 21)
.lword dummy_int ; TIMER B1 (software int 22)
.lword dummy_int ; TIMER B2 (software int 23)
.lword dummy_int ; TIMER B3 (software int 24)
.lword dummy_int ; TIMER B4 (software int 25)
.lword dummy_int ; INT5 (software int 26)
.lword dummy_int ; INT4 (software int 27)
.lword dummy_int ; INT3 (software int 28)
.lword dummy_int ; INT2 (software int 29)
.lword dummy_int ; INT1 (software int 30)
.lword dummy_int ; INT0 (software int 31)
.lword dummy_int ; TIMER B5 (software int 32)
.lword dummy_int ; uart2 trance/NACK (software int 33)
.lword dummy_int ; uart2 receive/ACK (software int 34)
.lword dummy_int ; uart3 trance/NACK (software int 35)
.lword dummy_int ; uart3 receive/ACK (software int 36)
.lword dummy_int ; uart4 trance/NACK (software int 37)
.lword dummy_int ; uart4 receive/ACK (software int 38)
.lword dummy_int ; uart2 bus collision (software int 39)
.lword dummy_int ; uart3 bus collision (software int 40)
.lword dummy_int ; uart4 bus collision (software int 41)
.lword dummy_int ; A-D Convert (software int 42)
.lword dummy_int ; input key (software int 43)
.lword dummy_int ; software int 44
.lword dummy_int ; software int 45
.lword dummy_int ; software int 46
.lword dummy_int ; software int 47
.lword dummy_int ; software int 48
.lword dummy_int ; software int 49
.lword dummy_int ; software int 50
.lword dummy_int ; software int 51
.lword dummy_int ; software int 52
.lword dummy_int ; software int 53
.lword dummy_int ; software int 54
.lword dummy_int ; software int 55
.lword dummy_int ; software int 56
.lword dummy_int ; software int 57
.lword dummy_int ; software int 58
.lword dummy_int ; software int 59
.lword dummy_int ; software int 60
.lword dummy_int ; software int 61
.lword dummy_int ; software int 62
.lword dummy_int ; software int 63
.endif ; __MVT__
;===============================================================
; fixed vector section
;---------------------------------------------------------------
.section svector,ROMDATA ; specialpage vector table
.if __MST__ == 0
.org SVECTOR_ADR
;===============================================================
; special page defination
;---------------------------------------------------------------
; macro is defined in ncrt0.a30
; Format: SPECIAL number
;
;---------------------------------------------------------------
; SPECIAL 255
; SPECIAL 254
; SPECIAL 253
; SPECIAL 252
; SPECIAL 251
; SPECIAL 250
; SPECIAL 249
; SPECIAL 248
; SPECIAL 247
; SPECIAL 246
; SPECIAL 245
; SPECIAL 244
; SPECIAL 243
; SPECIAL 242
; SPECIAL 241
; SPECIAL 240
; SPECIAL 239
; SPECIAL 238
; SPECIAL 237
; SPECIAL 236
; SPECIAL 235
; SPECIAL 234
; SPECIAL 233
; SPECIAL 232
; SPECIAL 231
; SPECIAL 230
; SPECIAL 229
; SPECIAL 228
; SPECIAL 227
; SPECIAL 226
; SPECIAL 225
; SPECIAL 224
; SPECIAL 223
; SPECIAL 222
; SPECIAL 221
; SPECIAL 220
; SPECIAL 219
; SPECIAL 218
; SPECIAL 217
; SPECIAL 216
; SPECIAL 215
; SPECIAL 214
; SPECIAL 213
; SPECIAL 212
; SPECIAL 211
; SPECIAL 210
; SPECIAL 209
; SPECIAL 208
; SPECIAL 207
; SPECIAL 206
; SPECIAL 205
; SPECIAL 204
; SPECIAL 203
; SPECIAL 202
; SPECIAL 201
; SPECIAL 200
; SPECIAL 199
; SPECIAL 198
; SPECIAL 197
; SPECIAL 196
; SPECIAL 195
; SPECIAL 194
; SPECIAL 193
; SPECIAL 192
; SPECIAL 191
; SPECIAL 190
; SPECIAL 189
; SPECIAL 188
; SPECIAL 187
; SPECIAL 186
; SPECIAL 185
; SPECIAL 184
; SPECIAL 183
; SPECIAL 182
; SPECIAL 181
; SPECIAL 180
; SPECIAL 179
; SPECIAL 178
; SPECIAL 177
; SPECIAL 176
; SPECIAL 175
; SPECIAL 174
; SPECIAL 173
; SPECIAL 172
; SPECIAL 171
; SPECIAL 170
; SPECIAL 169
; SPECIAL 168
; SPECIAL 167
; SPECIAL 166
; SPECIAL 165
; SPECIAL 164
; SPECIAL 163
; SPECIAL 162
; SPECIAL 161
; SPECIAL 160
; SPECIAL 159
; SPECIAL 158
; SPECIAL 157
; SPECIAL 156
; SPECIAL 155
; SPECIAL 154
; SPECIAL 153
; SPECIAL 152
; SPECIAL 151
; SPECIAL 150
; SPECIAL 149
; SPECIAL 148
; SPECIAL 147
; SPECIAL 146
; SPECIAL 145
; SPECIAL 144
; SPECIAL 143
; SPECIAL 142
; SPECIAL 141
; SPECIAL 140
; SPECIAL 139
; SPECIAL 138
; SPECIAL 137
; SPECIAL 136
; SPECIAL 135
; SPECIAL 134
; SPECIAL 133
; SPECIAL 132
; SPECIAL 131
; SPECIAL 130
; SPECIAL 129
; SPECIAL 128
; SPECIAL 127
; SPECIAL 126
; SPECIAL 125
; SPECIAL 124
; SPECIAL 123
; SPECIAL 122
; SPECIAL 121
; SPECIAL 120
; SPECIAL 119
; SPECIAL 118
; SPECIAL 117
; SPECIAL 116
; SPECIAL 115
; SPECIAL 114
; SPECIAL 113
; SPECIAL 112
; SPECIAL 111
; SPECIAL 110
; SPECIAL 109
; SPECIAL 108
; SPECIAL 107
; SPECIAL 106
; SPECIAL 105
; SPECIAL 104
; SPECIAL 103
; SPECIAL 102
; SPECIAL 101
; SPECIAL 100
; SPECIAL 99
; SPECIAL 98
; SPECIAL 97
; SPECIAL 96
; SPECIAL 95
; SPECIAL 94
; SPECIAL 93
; SPECIAL 92
; SPECIAL 91
; SPECIAL 90
; SPECIAL 89
; SPECIAL 88
; SPECIAL 87
; SPECIAL 86
; SPECIAL 85
; SPECIAL 84
; SPECIAL 83
; SPECIAL 82
; SPECIAL 81
; SPECIAL 80
; SPECIAL 79
; SPECIAL 78
; SPECIAL 77
; SPECIAL 76
; SPECIAL 75
; SPECIAL 74
; SPECIAL 73
; SPECIAL 72
; SPECIAL 71
; SPECIAL 70
; SPECIAL 69
; SPECIAL 68
; SPECIAL 67
; SPECIAL 66
; SPECIAL 65
; SPECIAL 64
; SPECIAL 63
; SPECIAL 62
; SPECIAL 61
; SPECIAL 60
; SPECIAL 59
; SPECIAL 58
; SPECIAL 57
; SPECIAL 56
; SPECIAL 55
; SPECIAL 54
; SPECIAL 53
; SPECIAL 52
; SPECIAL 51
; SPECIAL 50
; SPECIAL 49
; SPECIAL 48
; SPECIAL 47
; SPECIAL 46
; SPECIAL 45
; SPECIAL 44
; SPECIAL 43
; SPECIAL 42
; SPECIAL 41
; SPECIAL 40
; SPECIAL 39
; SPECIAL 38
; SPECIAL 37
; SPECIAL 36
; SPECIAL 35
; SPECIAL 34
; SPECIAL 33
; SPECIAL 32
; SPECIAL 31
; SPECIAL 30
; SPECIAL 29
; SPECIAL 28
; SPECIAL 27
; SPECIAL 26
; SPECIAL 25
; SPECIAL 24
; SPECIAL 23
; SPECIAL 22
; SPECIAL 21
; SPECIAL 20
; SPECIAL 19
; SPECIAL 18
;
.endif ; __MST__
;===============================================================
; fixed vector section
;---------------------------------------------------------------
.section fvector,ROMDATA
.org 0FFFFDCh
UDI:
.lword dummy_int
OVER_FLOW:
.lword dummy_int
BRKI:
.lword dummy_int
ADDRESS_MATCH:
.lword dummy_int
SINGLE_STEP:
.lword dummy_int
WDT:
.lword dummy_int
DBC:
.lword dummy_int
NMI:
.lword dummy_int
RESET:
.lword start
;
;*******************************************************************************
;
; C Compiler for M16C/80
; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
; and Renesas Solutions Corporation. All rights reserved.
;
;
;*******************************************************************************
branch/Aya/sp4b2/SP4b2/Debug/SP4b2.m32cc
-c
-finfo
-dir "D:\Aya\sp4b2\SP4b2\Debug"
-M82
"D:\Aya\sp4b2\SP4b2\SP4b2.c"
branch/Aya/sp4b2/SP4b2/Debug/ncrt0.lst
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 001
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
1 ;*******************************************************************************
2 ;
3 ; C COMPILER for M16C/80
4 ; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
5 ; and Renesas Solutions Corporation. All rights reserved.
6 ;
7 ;
8 ; ncrt0.a30 : NC308 startup program
9 ;
10 ; This program is applicable when using the basic I/O library
11 ;
12 ; $Date: 2005/10/12 11:03:05 $
13 ; $Revision: 1.30 $
14 ;
15 ;*******************************************************************************
16
17 ;---------------------------------------------------------------------
18 ; HEEP SIZE definition
19 ;---------------------------------------------------------------------
20 .if __HEAP__ == 1 ; for HEW
21 .else
22 .if __HEAPSIZE__ == 0
23 .else ; for HEW
24
25 00000300h HEAPSIZE .equ __HEAPSIZE__
26
27 .endif
28 .endif
29
30 ;---------------------------------------------------------------------
31 ; STACK SIZE definition
32 ;---------------------------------------------------------------------
33 .if __USTACKSIZE__ == 0
34 .else ; for HEW
35
36 00000300h STACKSIZE .equ __USTACKSIZE__
37
38 .endif
39
40 ;---------------------------------------------------------------------
41 ; INTERRUPT STACK SIZE definition
42 ;---------------------------------------------------------------------
43 .if __ISTACKSIZE__ == 0
44 .else ; for HEW
45
46 00000300h ISTACKSIZE .equ __ISTACKSIZE__
47
48 .endif
49
50 ;---------------------------------------------------------------------
51 ; INTERRUPT VECTOR ADDRESS definition
52 ;---------------------------------------------------------------------
53 00FFFD00h VECTOR_ADR .equ 0fffd00h
54 00FFFE00h SVECTOR_ADR .equ 0fffe00h
55
56 ;---------------------------------------------------------------
57 ; special page definition
58 ;---------------------------------------------------------------
59 ; macro define for special page
60 ;
61 ;Format:
62 ; SPECIAL number
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 002
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
63 ;
64
65 D SPECIAL .macro NUM
66 D .org 0FFFFFEH-(NUM*2)
67 D .glb __SPECIAL_@NUM
68 D .word __SPECIAL_@NUM & 0FFFFH
69 .endm
70 ;---------------------------------------------------------------------
71 ; Section allocation
72 ;---------------------------------------------------------------------
73 .list OFF
74 .list ON
75
76 ;---------------------------------------------------------------------
77 ; SBDATA area definition
78 ;---------------------------------------------------------------------
79 .glb __SB__
80 00000400h __SB__ .equ data_SE_top
81
82 ;====================================================================
83 ; Initialize Macro declaration
84 ;---------------------------------------------------------------------
85 ;
86 ; when copy less 64K byte
87 D BZERO .macro TOP_ ,SECT_
88 D mov.b #00H, R0L
89 D mov.l #TOP_, A1
90 D mov.w #sizeof SECT_ , R3
91 D sstr.b
92 .endm
93
94 D BCOPY .macro FROM_,TO_,SECT_
95 D mov.l #FROM_ ,A0
96 D mov.l #TO_ ,A1
97 D mov.w #sizeof SECT_ , R3
98 D smovf.b
99 .endm
100
101 ; when copy over 64K byte
102 ;BZEROL .macro TOP_,SECT_
103 ; push.w #sizeof SECT_ >> 16
104 ; push.w #sizeof SECT_ & 0ffffh
105 ; pusha TOP_
106 ; .stk 8
107 ;
108 ; .glb _bzero
109 ; .call _bzero,G
110 ; jsr.a _bzero
111 ; .endm
112 ;
113 ;
114 ;BCOPYL .macro FROM_ ,TO_ ,SECT_
115 ; push.w #sizeof SECT_ >> 16
116 ; push.w #sizeof SECT_ & 0ffffh
117 ; pusha TO_
118 ; pusha FROM_
119 ; .stk 12
120 ;
121 ; .glb _bcopy
122 ; .call _bcopy,G
123 ; jsr.a _bcopy
124 ; .endm
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 003
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
125 ;
126
127
128 ;====================================================================
129 ; Interrupt section start
130 ;---------------------------------------------------------------------
131 .insf start,S,0
132 .glb start
133 .section interrupt
134 000000 start:
135 ;---------------------------------------------------------------------
136 ; after reset,this program will start
137 ;---------------------------------------------------------------------
138 000000 D52F000000r ldc #istack_top, isp ;set istack pointer
139 000005 F6E20A00 Q mov.b #02h,0ah
140 000009 120400 Z mov.b #00h,04h ;set processer mode
141 00000C 120A00 Z mov.b #00h,0ah
142 00000F D5AA8000 ldc #0080h, flg
143 000013 D529000000r ldc #stack_top, sp ;set stack pointer
144 000018 D52A000400 ldc #data_SE_top, sb ;set sb register
145
146 00001D D1EC fset b ;switch to bank 1
147 00001F D52A000400 ldc #data_SE_top, sb ;set sb register
148 000024 D3EC fclr b ;switch to bank 0
149
150 000026 D52800FDFF ldc #VECTOR_ADR,intb
151
152 ;====================================================================
153 ; NEAR area initialize.
154 ;--------------------------------------------------------------------
155 ; bss zero clear
156 ;--------------------------------------------------------------------
157 BZERO bss_SE_top,bss_SE
158 00002B 02 M Z mov.b #00H, R0L
159 00002C B0F100000000r M mov.l #bss_SE_top, A1
160 000032 996F0000r M mov.w #sizeof bss_SE , R3
161 000036 B803 M sstr.b
162 M .endm
163 BZERO bss_SO_top,bss_SO
164 000038 02 M Z mov.b #00H, R0L
165 000039 B0F100000000r M mov.l #bss_SO_top, A1
166 00003F 996F0000r M mov.w #sizeof bss_SO , R3
167 000043 B803 M sstr.b
168 M .endm
169 BZERO bss_NE_top,bss_NE
170 000045 02 M Z mov.b #00H, R0L
171 000046 B0F100000000r M mov.l #bss_NE_top, A1
172 00004C 996F0000r M mov.w #sizeof bss_NE , R3
173 000050 B803 M sstr.b
174 M .endm
175 BZERO bss_NO_top,bss_NO
176 000052 02 M Z mov.b #00H, R0L
177 000053 B0F100000000r M mov.l #bss_NO_top, A1
178 000059 996F0000r M mov.w #sizeof bss_NO , R3
179 00005D B803 M sstr.b
180 M .endm
181
182 ; for NSD
183 BZERO bss_MON1_SE_top,bss_MON1_SE
184 00005F 02 M Z mov.b #00H, R0L
185 000060 B0F100000000r M mov.l #bss_MON1_SE_top, A1
186 000066 996F0000r M mov.w #sizeof bss_MON1_SE , R3
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 004
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
187 00006A B803 M sstr.b
188 M .endm
189 BZERO bss_MON2_SE_top,bss_MON2_SE
190 00006C 02 M Z mov.b #00H, R0L
191 00006D B0F100000000r M mov.l #bss_MON2_SE_top, A1
192 000073 996F0000r M mov.w #sizeof bss_MON2_SE , R3
193 000077 B803 M sstr.b
194 M .endm
195 BZERO bss_MON3_SE_top,bss_MON3_SE
196 000079 02 M Z mov.b #00H, R0L
197 00007A B0F100000000r M mov.l #bss_MON3_SE_top, A1
198 000080 996F0000r M mov.w #sizeof bss_MON3_SE , R3
199 000084 B803 M sstr.b
200 M .endm
201 BZERO bss_MON4_SE_top,bss_MON4_SE
202 000086 02 M Z mov.b #00H, R0L
203 000087 B0F100000000r M mov.l #bss_MON4_SE_top, A1
204 00008D 996F0000r M mov.w #sizeof bss_MON4_SE , R3
205 000091 B803 M sstr.b
206 M .endm
207
208 BZERO bss_MON1_SO_top,bss_MON1_SO
209 000093 02 M Z mov.b #00H, R0L
210 000094 B0F100000000r M mov.l #bss_MON1_SO_top, A1
211 00009A 996F0000r M mov.w #sizeof bss_MON1_SO , R3
212 00009E B803 M sstr.b
213 M .endm
214 BZERO bss_MON2_SO_top,bss_MON2_SO
215 0000A0 02 M Z mov.b #00H, R0L
216 0000A1 B0F100000000r M mov.l #bss_MON2_SO_top, A1
217 0000A7 996F0000r M mov.w #sizeof bss_MON2_SO , R3
218 0000AB B803 M sstr.b
219 M .endm
220 BZERO bss_MON3_SO_top,bss_MON3_SO
221 0000AD 02 M Z mov.b #00H, R0L
222 0000AE B0F100000000r M mov.l #bss_MON3_SO_top, A1
223 0000B4 996F0000r M mov.w #sizeof bss_MON3_SO , R3
224 0000B8 B803 M sstr.b
225 M .endm
226 BZERO bss_MON4_SO_top,bss_MON4_SO
227 0000BA 02 M Z mov.b #00H, R0L
228 0000BB B0F100000000r M mov.l #bss_MON4_SO_top, A1
229 0000C1 996F0000r M mov.w #sizeof bss_MON4_SO , R3
230 0000C5 B803 M sstr.b
231 M .endm
232
233 BZERO bss_MON1_E_top,bss_MON1_E
234 0000C7 02 M Z mov.b #00H, R0L
235 0000C8 B0F100000000r M mov.l #bss_MON1_E_top, A1
236 0000CE 996F0000r M mov.w #sizeof bss_MON1_E , R3
237 0000D2 B803 M sstr.b
238 M .endm
239 BZERO bss_MON2_E_top,bss_MON2_E
240 0000D4 02 M Z mov.b #00H, R0L
241 0000D5 B0F100000000r M mov.l #bss_MON2_E_top, A1
242 0000DB 996F0000r M mov.w #sizeof bss_MON2_E , R3
243 0000DF B803 M sstr.b
244 M .endm
245 BZERO bss_MON3_E_top,bss_MON3_E
246 0000E1 02 M Z mov.b #00H, R0L
247 0000E2 B0F100000000r M mov.l #bss_MON3_E_top, A1
248 0000E8 996F0000r M mov.w #sizeof bss_MON3_E , R3
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 005
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
249 0000EC B803 M sstr.b
250 M .endm
251 BZERO bss_MON4_E_top,bss_MON4_E
252 0000EE 02 M Z mov.b #00H, R0L
253 0000EF B0F100000000r M mov.l #bss_MON4_E_top, A1
254 0000F5 996F0000r M mov.w #sizeof bss_MON4_E , R3
255 0000F9 B803 M sstr.b
256 M .endm
257
258 BZERO bss_MON1_O_top,bss_MON1_O
259 0000FB 02 M Z mov.b #00H, R0L
260 0000FC B0F100000000r M mov.l #bss_MON1_O_top, A1
261 000102 996F0000r M mov.w #sizeof bss_MON1_O , R3
262 000106 B803 M sstr.b
263 M .endm
264 BZERO bss_MON2_O_top,bss_MON2_O
265 000108 02 M Z mov.b #00H, R0L
266 000109 B0F100000000r M mov.l #bss_MON2_O_top, A1
267 00010F 996F0000r M mov.w #sizeof bss_MON2_O , R3
268 000113 B803 M sstr.b
269 M .endm
270 BZERO bss_MON3_O_top,bss_MON3_O
271 000115 02 M Z mov.b #00H, R0L
272 000116 B0F100000000r M mov.l #bss_MON3_O_top, A1
273 00011C 996F0000r M mov.w #sizeof bss_MON3_O , R3
274 000120 B803 M sstr.b
275 M .endm
276 BZERO bss_MON4_O_top,bss_MON4_O
277 000122 02 M Z mov.b #00H, R0L
278 000123 B0F100000000r M mov.l #bss_MON4_O_top, A1
279 000129 996F0000r M mov.w #sizeof bss_MON4_O , R3
280 00012D B803 M sstr.b
281 M .endm
282
283
284
285 ;---------------------------------------------------------------------
286 ; initialize data section
287 ;---------------------------------------------------------------------
288 BCOPY data_SEI_top,data_SE_top,data_SE
289 00012F B0B100000000r M mov.l #data_SEI_top ,A0
290 000135 BD000400 M S mov.l #data_SE_top ,A1
291 000139 996F0000r M mov.w #sizeof data_SE , R3
292 00013D B083 M smovf.b
293 M .endm
294 BCOPY data_SOI_top,data_SO_top,data_SO
295 00013F B0B100000000r M mov.l #data_SOI_top ,A0
296 000145 B0F100000000r M mov.l #data_SO_top ,A1
297 00014B 996F0000r M mov.w #sizeof data_SO , R3
298 00014F B083 M smovf.b
299 M .endm
300 BCOPY data_NEI_top,data_NE_top,data_NE
301 000151 B0B100000000r M mov.l #data_NEI_top ,A0
302 000157 B0F100000000r M mov.l #data_NE_top ,A1
303 00015D 996F0000r M mov.w #sizeof data_NE , R3
304 000161 B083 M smovf.b
305 M .endm
306 BCOPY data_NOI_top,data_NO_top,data_NO
307 000163 B0B100000000r M mov.l #data_NOI_top ,A0
308 000169 B0F100000000r M mov.l #data_NO_top ,A1
309 00016F 996F0000r M mov.w #sizeof data_NO , R3
310 000173 B083 M smovf.b
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 006
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
311 M .endm
312
313 ; for NSD
314 BCOPY data_MON1_SEI_top,data_MON1_SE_top,data_MON1_SE
315 000175 B0B100000000r M mov.l #data_MON1_SEI_top ,A0
316 00017B B0F100000000r M mov.l #data_MON1_SE_top ,A1
317 000181 996F0000r M mov.w #sizeof data_MON1_SE , R3
318 000185 B083 M smovf.b
319 M .endm
320 BCOPY data_MON2_SEI_top,data_MON2_SE_top,data_MON2_SE
321 000187 B0B100000000r M mov.l #data_MON2_SEI_top ,A0
322 00018D B0F100000000r M mov.l #data_MON2_SE_top ,A1
323 000193 996F0000r M mov.w #sizeof data_MON2_SE , R3
324 000197 B083 M smovf.b
325 M .endm
326 BCOPY data_MON3_SEI_top,data_MON3_SE_top,data_MON3_SE
327 000199 B0B100000000r M mov.l #data_MON3_SEI_top ,A0
328 00019F B0F100000000r M mov.l #data_MON3_SE_top ,A1
329 0001A5 996F0000r M mov.w #sizeof data_MON3_SE , R3
330 0001A9 B083 M smovf.b
331 M .endm
332 BCOPY data_MON4_SEI_top,data_MON4_SE_top,data_MON4_SE
333 0001AB B0B100000000r M mov.l #data_MON4_SEI_top ,A0
334 0001B1 B0F100000000r M mov.l #data_MON4_SE_top ,A1
335 0001B7 996F0000r M mov.w #sizeof data_MON4_SE , R3
336 0001BB B083 M smovf.b
337 M .endm
338
339 BCOPY data_MON1_SOI_top,data_MON1_SO_top,data_MON1_SO
340 0001BD B0B100000000r M mov.l #data_MON1_SOI_top ,A0
341 0001C3 B0F100000000r M mov.l #data_MON1_SO_top ,A1
342 0001C9 996F0000r M mov.w #sizeof data_MON1_SO , R3
343 0001CD B083 M smovf.b
344 M .endm
345 BCOPY data_MON2_SOI_top,data_MON2_SO_top,data_MON2_SO
346 0001CF B0B100000000r M mov.l #data_MON2_SOI_top ,A0
347 0001D5 B0F100000000r M mov.l #data_MON2_SO_top ,A1
348 0001DB 996F0000r M mov.w #sizeof data_MON2_SO , R3
349 0001DF B083 M smovf.b
350 M .endm
351 BCOPY data_MON3_SOI_top,data_MON3_SO_top,data_MON3_SO
352 0001E1 B0B100000000r M mov.l #data_MON3_SOI_top ,A0
353 0001E7 B0F100000000r M mov.l #data_MON3_SO_top ,A1
354 0001ED 996F0000r M mov.w #sizeof data_MON3_SO , R3
355 0001F1 B083 M smovf.b
356 M .endm
357 BCOPY data_MON4_SOI_top,data_MON4_SO_top,data_MON4_SO
358 0001F3 B0B100000000r M mov.l #data_MON4_SOI_top ,A0
359 0001F9 B0F100000000r M mov.l #data_MON4_SO_top ,A1
360 0001FF 996F0000r M mov.w #sizeof data_MON4_SO , R3
361 000203 B083 M smovf.b
362 M .endm
363
364 BCOPY data_MON1_EI_top,data_MON1_E_top,data_MON1_E
365 000205 B0B100000000r M mov.l #data_MON1_EI_top ,A0
366 00020B B0F100000000r M mov.l #data_MON1_E_top ,A1
367 000211 996F0000r M mov.w #sizeof data_MON1_E , R3
368 000215 B083 M smovf.b
369 M .endm
370 BCOPY data_MON2_EI_top,data_MON2_E_top,data_MON2_E
371 000217 B0B100000000r M mov.l #data_MON2_EI_top ,A0
372 00021D B0F100000000r M mov.l #data_MON2_E_top ,A1
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 007
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
373 000223 996F0000r M mov.w #sizeof data_MON2_E , R3
374 000227 B083 M smovf.b
375 M .endm
376 BCOPY data_MON3_EI_top,data_MON3_E_top,data_MON3_E
377 000229 B0B100000000r M mov.l #data_MON3_EI_top ,A0
378 00022F B0F100000000r M mov.l #data_MON3_E_top ,A1
379 000235 996F0000r M mov.w #sizeof data_MON3_E , R3
380 000239 B083 M smovf.b
381 M .endm
382 BCOPY data_MON4_EI_top,data_MON4_E_top,data_MON4_E
383 00023B B0B100000000r M mov.l #data_MON4_EI_top ,A0
384 000241 B0F100000000r M mov.l #data_MON4_E_top ,A1
385 000247 996F0000r M mov.w #sizeof data_MON4_E , R3
386 00024B B083 M smovf.b
387 M .endm
388
389 BCOPY data_MON1_OI_top,data_MON1_O_top,data_MON1_O
390 00024D B0B100000000r M mov.l #data_MON1_OI_top ,A0
391 000253 B0F100000000r M mov.l #data_MON1_O_top ,A1
392 000259 996F0000r M mov.w #sizeof data_MON1_O , R3
393 00025D B083 M smovf.b
394 M .endm
395 BCOPY data_MON2_OI_top,data_MON2_O_top,data_MON2_O
396 00025F B0B100000000r M mov.l #data_MON2_OI_top ,A0
397 000265 B0F100000000r M mov.l #data_MON2_O_top ,A1
398 00026B 996F0000r M mov.w #sizeof data_MON2_O , R3
399 00026F B083 M smovf.b
400 M .endm
401 BCOPY data_MON3_OI_top,data_MON3_O_top,data_MON3_O
402 000271 B0B100000000r M mov.l #data_MON3_OI_top ,A0
403 000277 B0F100000000r M mov.l #data_MON3_O_top ,A1
404 00027D 996F0000r M mov.w #sizeof data_MON3_O , R3
405 000281 B083 M smovf.b
406 M .endm
407 BCOPY data_MON4_OI_top,data_MON4_O_top,data_MON4_O
408 000283 B0B100000000r M mov.l #data_MON4_OI_top ,A0
409 000289 B0F100000000r M mov.l #data_MON4_O_top ,A1
410 00028F 996F0000r M mov.w #sizeof data_MON4_O , R3
411 000293 B083 M smovf.b
412 M .endm
413
414
415 ;====================================================================
416 ; FAR area initialize.
417 ;---------------------------------------------------------------------
418 ; bss zero clear
419 ;---------------------------------------------------------------------
420 ; BZERO bss_SE_top,bss_SE
421 ; BZERO bss_SO_top,bss_SO
422 ; BZERO bss_6E_top,bss_6E
423 ; BZERO bss_6O_top,bss_6O
424 BZERO bss_FE_top,bss_FE
425 000295 02 M Z mov.b #00H, R0L
426 000296 B0F100000000r M mov.l #bss_FE_top, A1
427 00029C 996F0000r M mov.w #sizeof bss_FE , R3
428 0002A0 B803 M sstr.b
429 M .endm
430 BZERO bss_FO_top,bss_FO
431 0002A2 02 M Z mov.b #00H, R0L
432 0002A3 B0F100000000r M mov.l #bss_FO_top, A1
433 0002A9 996F0000r M mov.w #sizeof bss_FO , R3
434 0002AD B803 M sstr.b
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 008
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
435 M .endm
436
437 ; for NSD
438 ; BZERO bss_MON1_SE_top,bss_MON1_SE
439 ; BZERO bss_MON2_SE_top,bss_MON2_SE
440 ; BZERO bss_MON3_SE_top,bss_MON3_SE
441 ; BZERO bss_MON4_SE_top,bss_MON4_SE
442 ;
443 ; BZERO bss_MON1_SO_top,bss_MON1_SO
444 ; BZERO bss_MON2_SO_top,bss_MON2_SO
445 ; BZERO bss_MON3_SO_top,bss_MON3_SO
446 ; BZERO bss_MON4_SO_top,bss_MON4_SO
447 ;
448 ; BZERO bss_MON1_6E_top,bss_MON1_6E
449 ; BZERO bss_MON2_6E_top,bss_MON2_6E
450 ; BZERO bss_MON3_6E_top,bss_MON3_6E
451 ; BZERO bss_MON4_6E_top,bss_MON4_6E
452 ;
453 ; BZERO bss_MON1_6O_top,bss_MON1_6O
454 ; BZERO bss_MON2_6O_top,bss_MON2_6O
455 ; BZERO bss_MON3_6O_top,bss_MON3_6O
456 ; BZERO bss_MON4_6O_top,bss_MON4_6O
457 ;
458 ; BZERO bss_MON1_E_top,bss_MON1_E
459 ; BZERO bss_MON2_E_top,bss_MON2_E
460 ; BZERO bss_MON3_E_top,bss_MON3_E
461 ; BZERO bss_MON4_E_top,bss_MON4_E
462 ;
463 ; BZERO bss_MON1_O_top,bss_MON1_O
464 ; BZERO bss_MON2_O_top,bss_MON2_O
465 ; BZERO bss_MON3_O_top,bss_MON3_O
466 ; BZERO bss_MON4_O_top,bss_MON4_O
467
468
469 ;---------------------------------------------------------------------
470 ; Copy edata_E(O) section from edata_EI(OI) section
471 ;---------------------------------------------------------------------
472 ; BCOPY data_SEI_top,data_SE_top,data_SE
473 ; BCOPY data_SOI_top,data_SO_top,data_SO
474 ; BCOPY data_6EI_top,data_6E_top,data_6E
475 ; BCOPY data_6OI_top,data_6O_top,data_6O
476 BCOPY data_FEI_top,data_FE_top,data_FE
477 0002AF B0B100000000r M mov.l #data_FEI_top ,A0
478 0002B5 BD000002 M S mov.l #data_FE_top ,A1
479 0002B9 996F0000r M mov.w #sizeof data_FE , R3
480 0002BD B083 M smovf.b
481 M .endm
482 BCOPY data_FOI_top,data_FO_top,data_FO
483 0002BF B0B100000000r M mov.l #data_FOI_top ,A0
484 0002C5 B0F100000000r M mov.l #data_FO_top ,A1
485 0002CB 996F0000r M mov.w #sizeof data_FO , R3
486 0002CF B083 M smovf.b
487 M .endm
488
489 ; for NSD
490 ; BCOPY data_MON1_SEI_top,data_MON1_SE_top,data_MON1_SE
491 ; BCOPY data_MON2_SEI_top,data_MON2_SE_top,data_MON2_SE
492 ; BCOPY data_MON3_SEI_top,data_MON3_SE_top,data_MON3_SE
493 ; BCOPY data_MON4_SEI_top,data_MON4_SE_top,data_MON4_SE
494 ;
495 ; BCOPY data_MON1_SOI_top,data_MON1_SO_top,data_MON1_SO
496 ; BCOPY data_MON2_SOI_top,data_MON2_SO_top,data_MON2_SO
* M32C SERIES ASSEMBLER * SOURCE LIST Wed May 26 11:58:22 2021 PAGE 009
SEQ. LOC. OBJ. 0XMSDA .*....*....SOURCE STATEMENT....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
497 ; BCOPY data_MON3_SOI_top,data_MON3_SO_top,data_MON3_SO
498 ; BCOPY data_MON4_SOI_top,data_MON4_SO_top,data_MON4_SO
499 ;
500 ; BCOPY data_MON1_6EI_top,data_MON1_6E_top,data_MON1_6E
501 ; BCOPY data_MON2_6EI_top,data_MON2_6E_top,data_MON2_6E
502 ; BCOPY data_MON3_6EI_top,data_MON3_6E_top,data_MON3_6E
503 ; BCOPY data_MON4_6EI_top,data_MON4_6E_top,data_MON4_6E
504 ;
505 ; BCOPY data_MON1_6OI_top,data_MON1_6O_top,data_MON1_6O
506 ; BCOPY data_MON2_6OI_top,data_MON2_6O_top,data_MON2_6O
507 ; BCOPY data_MON3_6OI_top,data_MON3_6O_top,data_MON3_6O
508 ; BCOPY data_MON4_6OI_top,data_MON4_6O_top,data_MON4_6O
509 ;
510 ; BCOPY data_MON1_EI_top,data_MON1_E_top,data_MON1_E
511 ; BCOPY data_MON2_EI_top,data_MON2_E_top,data_MON2_E
512 ; BCOPY data_MON3_EI_top,data_MON3_E_top,data_MON3_E
513 ; BCOPY data_MON4_EI_top,data_MON4_E_top,data_MON4_E
514 ;
515 ; BCOPY data_MON1_OI_top,data_MON1_O_top,data_MON1_O
516 ; BCOPY data_MON2_OI_top,data_MON2_O_top,data_MON2_O
517 ; BCOPY data_MON3_OI_top,data_MON3_O_top,data_MON3_O
518 ; BCOPY data_MON4_OI_top,data_MON4_O_top,data_MON4_O
519
520
521 0002D1 D529000000r ldc #stack_top,sp
522
523 ; .stk -?? ; Validate this when use BZEROL,BCOPYL
524
525 ;====================================================================
526 ; heap area initialize
527 ;---------------------------------------------------------------------
528 .if __HEAP__ != 1
529 .glb __mnext
530 .glb __msize
531 0002D6 B6B1000000r00000000r mov.l #(heap_top&0FFFFFFH), __mnext
532 0002DF B6B1000000r00030000 mov.l #(HEAPSIZE&0FFFFFFH), __msize
533 .endif
534 ;====================================================================
535 ; Initialize standard I/O
536 ;---------------------------------------------------------------------
537 .if __STANDARD_IO__ == 1
538 .endif
539
540 ;====================================================================
541 ; Call main() function
542 ;---------------------------------------------------------------------
543 0002E8 D52B000000 ldc #0h,fb ; for debuger
544
545 .glb _main
546 0002ED CD000000r A jsr.a _main
547
548 ;====================================================================
549 ; exit() function
550 ;---------------------------------------------------------------------
551 .glb _exit
552 .glb $exit
553 0002F1 _exit: ; End program
554 0002F1 $exit:
555 0002F1 BBFF B jmp _exit
556 .einsf
557
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff