You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.4 KiB

2 months ago
#CC-RL Compiler RL78 Assembler Source
#@ CC-RL Version : V1.15.00 [06 Dec 2024]
#@ Commmand :
#@ -cpu=S3
#@ -S
#@ -Olite
#@ -I .
#@ -asm_path=tmp
#@ r_main.c
#@ r_cg_cgc_user.c
#@ compiled at Tue Sep 15 15:35:58 2026
.PUBLIC _g_boot_reset_flags
.PUBLIC _g_trace_magic
.PUBLIC _g_trace_stage
.PUBLIC _g_trace_byte
.PUBLIC _g_trace_stack_low
.PUBLIC _g_trace_isr
.PUBLIC _R_CGC_Get_ResetSource
.PUBLIC _NVM_TraceStack
.SECTION .textf,TEXTF
.TYPE _R_CGC_Get_ResetSource,function,.LFE1-_R_CGC_Get_ResetSource
_R_CGC_Get_ResetSource:
.STACK _R_CGC_Get_ResetSource = 4
mov a, 0xFFFA8
mov !LOWW(_g_boot_reset_flags), a
ret
.LFE1:
.TYPE _NVM_TraceStack,function,.LFE2-_NVM_TraceStack
_NVM_TraceStack:
.STACK _NVM_TraceStack = 6
push hl
movw ax, sp
movw bc, ax
movw ax, !LOWW(_g_trace_magic)
cmpw ax, #0x4352
bnz $.BB@LABEL@2_3
.BB@LABEL@2_1: ; bb
movw ax, bc
cmpw ax, !LOWW(_g_trace_stack_low)
sknc
.BB@LABEL@2_2: ; if_then_bb
movw !LOWW(_g_trace_stack_low), ax
.BB@LABEL@2_3: ; return
pop ax
ret
.LFE2:
.SECTION RESET_DIAG_n,BSS
.TYPE _g_boot_reset_flags,object,1
_g_boot_reset_flags:
.DS (1)
.ALIGN 2
.TYPE _g_trace_magic,object,2
_g_trace_magic:
.DS (2)
.TYPE _g_trace_stage,object,1
_g_trace_stage:
.DS (1)
.ALIGN 2
.TYPE _g_trace_byte,object,2
_g_trace_byte:
.DS (2)
.ALIGN 2
.TYPE _g_trace_stack_low,object,2
_g_trace_stack_low:
.DS (2)
.TYPE _g_trace_isr,object,1
_g_trace_isr:
.DS (1)