📄 appmain.ms
字号:
.file "..\src\appmain.c"
; GNU C 2.7.2 [AL 1.1, MM 40] RISC NEWS-OS compiled by CC
; Cc1 defaults:
; -mmemcpy
; Cc1 arguments (-G value = 0, Cpu = 3000, ISA = 1):
; -quiet -dumpbase -g -O -fno-builtin -o
gcc2_compiled.:
__gnu_compiled_c:
.code
.align 1
.def main, val main, scl 2, type 0x21, endef
.global main
.loc 14
.def ent, scl 101, type 0x0, endef
main:
; .frame %sp,8,$31 # vars= 0, regs= 2/0, args= 0, extra= 0
; .mask 0x80010000,-4
; .fmask 0x00000000,0
pushn %r0
.loc 16
.def begin, scl 100, type 0x0, endef
ext vInitLED@rh ; xcall vInitLED
ext vInitLED@rm
call vInitLED@rl
__LX2: ; __L2:
.loc 19
.def begin, scl 100, type 0x0, endef
.def i, val 0, scl 4, type 0xc, endef
.def j, val 0, scl 4, type 0xc, endef
.loc 21
call light_led ; xcall light_led
.loc 22
call light_led ; xcall light_led
.loc 24
ld.w %r0,0x1 ; xld.w %r0,0x00000001 ; 1
__LX8: ; __L8:
.loc 26
ld.ub %r12,%r0
call vSinglight ; xcall vSinglight
.loc 24
add %r0,0x1 ; xadd %r0,%r0,1
ld.ub %r10,%r0
cmp %r10,0x4 ; xcmp %r10,4
jrule __LX8 ; xjrule __L8
.loc 28
call light_led ; xcall light_led
.loc 29
call light_led ; xcall light_led
.loc 30
ld.w %r0,0x4 ; xld.w %r0,0x00000004 ; 4
__LX13: ; __L13:
.loc 32
ld.ub %r12,%r0
call vSinglight ; xcall vSinglight
.loc 30
sub %r0,0x1 ; xsub %r0,%r0,1
ld.ub %r10,%r0
cmp %r10,0x0
jrne __LX13 ; xjrne __L13
.loc 35
.def bend, scl 110, type 0x0, endef
.loc 17
jp __LX2 ; xjp __L2
.loc 36
.def bend, scl 110, type 0x0, endef
popn %r0
ret
.def end, scl 111, type 0x0, endef
.align 1
.def light_led, val light_led, scl 2, type 0x21, endef
.global light_led
.loc 40
.def ent, scl 101, type 0x0, endef
light_led:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.loc 42
call delay ; xcall delay
.loc 43
ext vLEDOn@rh ; xcall vLEDOn
ext vLEDOn@rm
call vLEDOn@rl
.loc 44
call delay ; xcall delay
.loc 45
ext vLEDOff@rh ; xcall vLEDOff
ext vLEDOff@rm
call vLEDOff@rl
.loc 47
ret
.def end, scl 111, type 0x0, endef
.align 1
.def vSinglight, val vSinglight, scl 2, type 0x21, endef
.global vSinglight
.loc 49
.def ent, scl 101, type 0x0, endef
vSinglight:
; .frame %sp,8,$31 # vars= 0, regs= 2/0, args= 0, extra= 0
; .mask 0x80010000,-4
; .fmask 0x00000000,0
pushn %r0
ld.w %r0,%r12
.def warm, val 0, scl 17, type 0xc, endef
.loc 50
call delay ; xcall delay
.loc 51
ld.ub %r0,%r0
ld.w %r12,%r0
ext vSingleOn@rh ; xcall vSingleOn
ext vSingleOn@rm
call vSingleOn@rl
.loc 52
call delay ; xcall delay
.loc 53
ld.w %r12,%r0
ext vSingleOff@rh ; xcall vSingleOff
ext vSingleOff@rm
call vSingleOff@rl
.loc 54
popn %r0
ret
.def end, scl 111, type 0x0, endef
.align 1
.def delay, val delay, scl 2, type 0x21, endef
.global delay
.loc 57
.def ent, scl 101, type 0x0, endef
delay:
; .frame %sp,4,$31 # vars= 0, regs= 1/0, args= 0, extra= 0
; .mask 0x80000000,-4
; .fmask 0x00000000,0
.loc 58
.def begin, scl 100, type 0x0, endef
.def i, val 10, scl 4, type 0x4, endef
.loc 59
ld.w %r10,0x0
ext 0x9c ; xld.w %r12,0x00002710 ; 10000
ld.w %r12,0x10
ext 0xc34 ; xld.w %r11,0x00030d3f ; 199999
ld.w %r11,0x3f
__LX21: ; __L21:
.loc 59
add %r10,0x1 ; xadd %r10,%r10,1
cmp %r10,%r11
jrle __LX21 ; xjrle __L21
.loc 61
.def bend, scl 110, type 0x0, endef
ret
.def end, scl 111, type 0x0, endef
.endfile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -