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

📄 write.lst

📁 一个用mega8开发的速度发生器,速度比较准确,值得下载
💻 LST
字号:
__start:
__text_start:
    0013 E5CF      LDI	R28,0x5F
    0014 E0D4      LDI	R29,4
    0015 BFCD      OUT	0x3D,R28
    0016 BFDE      OUT	0x3E,R29
    0017 51C0      SUBI	R28,0x10
    0018 40D0      SBCI	R29,0
    0019 EA0A      LDI	R16,0xAA
    001A 8308      STD	Y+0,R16
    001B 2400      CLR	R0
    001C E6E0      LDI	R30,0x60
    001D E0F0      LDI	R31,0
    001E E010      LDI	R17,0
    001F 36E0      CPI	R30,0x60
    0020 07F1      CPC	R31,R17
    0021 F011      BEQ	0x0024
    0022 9201      ST	R0,Z+
    0023 CFFB      RJMP	0x001F
    0024 8300      STD	Z+0,R16
    0025 E2E6      LDI	R30,0x26
    0026 E0F0      LDI	R31,0
    0027 E6A0      LDI	R26,0x60
    0028 E0B0      LDI	R27,0
    0029 E010      LDI	R17,0
    002A 32E6      CPI	R30,0x26
    002B 07F1      CPC	R31,R17
    002C F021      BEQ	0x0031
    002D 95C8      LPM
    002E 9631      ADIW	R30,1
    002F 920D      ST	R0,X+
    0030 CFF9      RJMP	0x002A
    0031 D011      RCALL	_main
_exit:
    0032 CFFF      RJMP	_exit
FILE: D:\xb_work\mage8\project\write\main.c
(0001) //ICC-AVR application builder : 2006-5-13 10:08:29
(0002) // Target : M8
(0003) // Crystal: 1.0000Mhz
(0004) 
(0005) #include <iom8v.h>
(0006) #include <macros.h>
(0007) 
(0008) void port_init(void)
(0009) {
(0010)  PORTB = 0x00;
_port_init:
    0033 2422      CLR	R2
    0034 BA28      OUT	0x18,R2
(0011)  DDRB  = 0x00;
    0035 BA27      OUT	0x17,R2
(0012)  PORTC = 0x00; //m103 output only
    0036 BA25      OUT	0x15,R2
(0013)  DDRC  = 0x00;
    0037 BA24      OUT	0x14,R2
(0014)  PORTD = 0x00;
    0038 BA22      OUT	0x12,R2
(0015)  DDRD  = 0x00;
    0039 BA21      OUT	0x11,R2
    003A 9508      RET
(0016) }
(0017) 
(0018) //call this routine to initialize all peripherals
(0019) void init_devices(void)
(0020) {
(0021)  //stop errant interrupts until set up
(0022)  CLI(); //disable all interrupts
_init_devices:
    003B 94F8      BCLR	7
(0023)  port_init();
    003C DFF6      RCALL	_port_init
(0024) 
(0025)  MCUCR = 0x00;
    003D 2422      CLR	R2
    003E BE25      OUT	0x35,R2
(0026)  GICR  = 0x00;
    003F BE2B      OUT	0x3B,R2
(0027)  TIMSK = 0x00; //timer interrupt sources
    0040 BE29      OUT	0x39,R2
(0028)  SEI(); //re-enable interrupts
    0041 9478      BSET	7
    0042 9508      RET
(0029)  //all peripherals are now initialized
(0030) }
(0031)  
(0032)  void main(void)
(0033)  {
(0034)   init_devices();
_main:
    0043 DFF7      RCALL	_init_devices
(0035)   while(1)
FILE: <library>
    0044 CFFF      RJMP	0x0044
    0045 9508      RET

⌨️ 快捷键说明

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