⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timer.s

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 S
字号:
	.file	"c:/at91/software/projects/bench/source/timer.c"
	.option	svr4
	.option	arm_code
	.option	inter
	.ident	"hc4.5a -O7 \n"
	.option	noswst
	.seg	".text",text
	.option	code32,inter
.L00TEXT:
;-------------| at91_tc_open_count |-------------------
	.align	4
	.global	at91_tc_open_count
at91_tc_open_count:
	.cfa_bf	at91_tc_open_count
	stmdb	%sp!,{%r8-%r10,%lr}
	.cfa_push	{%r8-%r10,%lr}
	mov	%r9,%r0
	ldr	%r0,[%r9, #0]
	mov	%r3,#0
	ldr	%r8,[%r0, #0]
	ldr	%r10,[%pc, #.LC01-.-8]
	mov	%r2,#1
	mov	%r1,%r10
	bl	at91_tc_open
	ldr	%r0,[%r9, #4]
	mov	%r3,#0
	mov	%r1,%r10
	mov	%r2,#1
	bl	at91_tc_open
	ldr	%r0,[%r9, #8]
	mov	%r3,#0
	mov	%r1,%r10
	mov	%r2,#1
	bl	at91_tc_open
	mov	%ip,#2
	str	%ip,[%r8, #28]
	mov	%r3,#1
	str	%r3,[%r8, #0]
	str	%ip,[%r8, #0x5c]
	str	%r3,[%r8, #64]
	str	%ip,[%r8, #0x9c]
	str	%r3,[%r8, #0x80]
	str	%r3,[%r8, #0xc0]
	mov	%ip,#56
	str	%ip,[%r8, #0xc4]
	mov	%ip,#0x6c000
	add	%ip,%ip,#0x400000
	str	%ip,[%r8, #4]
	mov	%r1,#0x3e8
	str	%r1,[%r8, #28]
	mov	%r2,#0x1f4
	str	%r2,[%r8, #20]
	str	%r3,[%r8, #0]
	ldr	%ip,[%pc, #.LC01+4-.-8]
	str	%ip,[%r8, #0x44]
	str	%r1,[%r8, #0x5c]
	str	%r2,[%r8, #0x54]
	str	%r3,[%r8, #64]
	ldr	%ip,[%pc, #.LC01+8-.-8]
	str	%ip,[%r8, #0x84]
	mov	%ip,#255
	add	%ip,%ip,#0xff00
	str	%ip,[%r8, #0x9c]
	str	%r3,[%r8, #0x80]
	ldr	%ip,[%r8, #32]
	ldr	%ip,[%r8, #0x60]
	ldr	%ip,[%r8, #0xa0]
	mov	%ip,#4
	str	%ip,[%r8, #0x80]
	str	%ip,[%r8, #64]
	.cfa_remember_state
	ldmia	%sp!,{%r8-%r10,%ip}
	.cfa_pop	{%r8-%r10,%ip}
	bx	%ip
	.cfa_restore_state
	.cfa_ef
	.type at91_tc_open_count, @function
	.size at91_tc_open_count, . - at91_tc_open_count
;-------------| at91_tc_start |-------------------
	.align	4
	.global	at91_tc_start
at91_tc_start:
	.cfa_bf	at91_tc_start
	ldr	%ip,[%r0, #0]
	mov	%r3,#4
	ldr	%ip,[%ip, #0]
	str	%r3,[%ip, #0]
	bx	%lr
	.cfa_ef
	.type at91_tc_start, @function
	.size at91_tc_start, . - at91_tc_start
;-------------| at91_tc_stop |-------------------
	.align	4
	.global	at91_tc_stop
at91_tc_stop:
	.cfa_bf	at91_tc_stop
	stmdb	%sp!,{%r4,%r8,%r9,%lr}
	.cfa_push	{%r4,%r8,%r9,%lr}
	mov	%r8,%r0
	ldr	%r0,[%r8, #0]
	mov	%ip,#2
	ldr	%r3,[%r0, #0]
	str	%ip,[%r3, #0]
	ldr	%r1,[%r3, #16]
	ldr	%r2,[%r3, #0x50]
	ldr	%r3,[%r3, #0x90]
	rsb	%ip,%r2,%r2,lsl #5
	add	%ip,%r2,%ip,lsl #2
	add	%r2,%r1,%ip,lsl #3
	mov	%ip,#0x240
	add	%ip,%ip,#0xf4000
	mla	%ip,%r3,%ip,%r2
	mov	%r9,%ip,lsl #1
	bl	at91_tc_close
	ldr	%r0,[%r8, #4]
	bl	at91_tc_close
	ldr	%r0,[%r8, #8]
	bl	at91_tc_close
	mov	%r0,%r9
	.cfa_remember_state
	ldmia	%sp!,{%r4,%r8,%r9,%ip}
	.cfa_pop	{%r4,%r8,%r9,%ip}
	bx	%ip
	.cfa_restore_state
	.cfa_ef
	.type at91_tc_stop, @function
	.size at91_tc_stop, . - at91_tc_stop
.LC01:
	.long	0x808040
	.long	0x46c006
	.long	0x46c007
	.end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -