init.s

来自「用M16控制,定时器工作于计数方式,计数值同步显示在LCD上」· S 代码 · 共 40 行

S
40
字号
	.module init.c
	.area text(rom, con, rel)
	.dbfile E:\新建文件夹\conter_icc\cfile\init.c
	.dbfunc e InitIo _InitIo fV
	.even
_InitIo::
	.dbline -1
	.dbline 4
; #define INIT_C
; #include "includes.h"
; void InitIo(void)
; {
	.dbline 5
;     DDRA  = 0xff;
	ldi R24,255
	out 0x1a,R24
	.dbline 6
;     PORTA = 0xff;
	out 0x1b,R24
	.dbline 7
;     DDRB  = 0x00;
	clr R2
	out 0x17,R2
	.dbline 9
;     //PORTB = 0x00;
;     PORTB = 0xff;
	out 0x18,R24
	.dbline 10
;     DDRC  = 0xff;
	out 0x14,R24
	.dbline 11
;     PORTC = 0xff;    
	out 0x15,R24
	.dbline -2
L1:
	.dbline 0 ; func end
	ret
	.dbend
; }

⌨️ 快捷键说明

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