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

📄 ex5_root.lst

📁 基于摩托罗拉S12标准源程序 包括:SCIO,Timer
💻 LST
📖 第 1 页 / 共 2 页
字号:
  114:  	}
  115:  }
  001a 3d           RTS   
  116:  
  117:  /*******************************************************************
  118:  * root info display subroutine
  119:  * Description : Display root info via RS232
  120:  *			  :
  121:  * Example     : N/A  
  122:  * Input 	  : N/A
  123:  * Output	  : N/A
  124:  * Modify      : N/A
  125:  * Return      : N/A
  126:  ********************************************************************/ 
  127:  void root_info()
  128:  {	

Function: root_info
Source  : D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\sources\ex5_root.c
Options : -DNON_BANK -Env"GENPATH=D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\bin;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\cmd;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\prm;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\sources;C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\LIB;C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\SRC;C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\INCLUDE" -Env"LIBPATH=C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\INCLUDE" -Env"OBJPATH=D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\bin" -Env"TEXTPATH=D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\bin" -Lasm=%n.lst -ObjN="D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\S12_Ex5_EEPROM_ICD_CW31_Data\FCS\ObjectCode\ex5_root.c.o" -Ol0

  129:  //	hex_asc((byte)(RAM_Add>>8));
  130:  //	hex_asc((byte)(RAM_Add));
  131:  //	printf0("\r\n");
  132:  }
  0000 3d           RTS   
  133:  
  134:  /*******************************************************************
  135:  * root menu subroutine
  136:  * Description : Root menu data to be displayed via RS232
  137:  *			  :
  138:  * Example     : N/A  
  139:  * Input 	  : wait for terminal input
  140:  * Output	  : point to corresponding page
  141:  * Modify      : N/A
  142:  * Return      : N/A
  143:  ********************************************************************/ 
  144:  void root_menu(void)
  145:  { 

Function: root_menu
Source  : D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\sources\ex5_root.c
Options : -DNON_BANK -Env"GENPATH=D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\bin;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\cmd;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\prm;D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\sources;C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\LIB;C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\SRC;C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\INCLUDE" -Env"LIBPATH=C:\Program Files\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\INCLUDE" -Env"OBJPATH=D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\bin" -Env"TEXTPATH=D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\bin" -Lasm=%n.lst -ObjN="D:\Profiles\r63492.FSL\My Documents\Training document\培训教材\HCS12\S12 Ex5 EEPROM ICD CW31\S12_Ex5_EEPROM_ICD_CW31_Data\FCS\ObjectCode\ex5_root.c.o" -Ol0

  0000 1b9d         LEAS  -3,SP
  146:  	byte cdata,loop=ENABLE;	
  0002 c601         LDAB  #1
  0004 6b81         STAB  1,SP
  147:  
  148:  	while(loop==ENABLE)
  149:  	{ 
  150:  	  printf0("\n		Root Test Menu\r");
  0006 cc0000       LDD   #"\012\011\011Root Test Menu\015"
  0009 160000       JSR   printf0
  151:  	  printf0("\n	0. Root Test Menu\r");
  000c cc0000       LDD   #"\012\0110. Root Test Menu\015"
  000f 160000       JSR   printf0
  152:  	  printf0("\n	1. Modify RAM\r");
  0012 cc0000       LDD   #"\012\0111. Modify RAM\015"
  0015 160000       JSR   printf0
  153:  	  printf0("\n	2. PORTB Test Menu\r");
  0018 cc0000       LDD   #"\012\0112. PORTB Test Menu\015"
  001b 160000       JSR   printf0
  154:  	  printf0("\n	3. EEPROM Test Menu\r");
  001e cc0000       LDD   #"\012\0113. EEPROM Test Menu\015"
  0021 160000       JSR   printf0
  155:  	  printf0("\n	9. Display DATA\n\r");
  0024 cc0000       LDD   #"\012\0119. Display DATA\012\015"
  0027 160000       JSR   printf0
  156:  
  157:  	  do
  158:  	  {
  159:  	  	cdata=menurx_char0(ROOT_PAGE);
  002a c601         LDAB  #1
  002c 160000       JSR   menurx_char0
  002f 6b82         STAB  2,SP
  160:  	  	if(cdata==CR || cdata=='9')
  0031 c10d         CMPB  #13
  0033 270c         BEQ   *+14 ;abs = 0041
  0035 c139         CMPB  #57
  0037 2708         BEQ   *+10 ;abs = 0041
  161:  	      break;
  162:  	  }	  
  163:  	  while((cdata>'3') || (cdata<'0'));
  0039 c133         CMPB  #51
  003b 22ed         BHI   *-17 ;abs = 002a
  003d c130         CMPB  #48
  003f 25e9         BCS   *-21 ;abs = 002a
  164:  	  		//get input from user
  165:  
  166:   	  switch(cdata)
  0041 c139         CMPB  #57
  0043 222c         BHI   *+46 ;abs = 0071
  0045 c130         CMPB  #48
  0047 6b80         STAB  0,SP
  0049 250e         BCS   *+16 ;abs = 0059
  004b c133         CMPB  #51
  004d 220a         BHI   *+12 ;abs = 0059
  004f c030         SUBB  #48
  0051 87           CLRA  
  0052 160000       JSR   _CASE_DIRECT_BYTE
  0055 21           DC.B  33
  0056 0a           DC.B  10
  0057 0f           DC.B  15
  0058 14           DC.B  20
  0059 c139         CMPB  #57
  005b 2711         BEQ   *+19 ;abs = 006e
  005d 2012         BRA   *+20 ;abs = 0071
  167:  	  { 
  168:  		case  	'0': loop=DISABLE;
  169:  					 break;
  170:  		case  	'1': init_RAM_start_address(); 
  005f 160000       JSR   init_RAM_start_address
  171:  					 break;
  0062 200d         BRA   *+15 ;abs = 0071
  172:  		case  	'2': portb_test_menu(); 
  0064 160000       JSR   portb_test_menu
  173:  					 break;
  0067 2008         BRA   *+10 ;abs = 0071
  174:  		case  	'3': eeprom_test_menu(); 
  0069 160000       JSR   eeprom_test_menu
  175:  					 break;
  006c 2003         BRA   *+5 ;abs = 0071
  176:  		case  	'9': data_display(); 
  006e 160000       JSR   data_display
  0071 e681         LDAB  1,SP
  0073 041190       DBEQ  B,*-109 ;abs = 0006
  177:  					 break;
  178:  					 
  179:  	  }
  180:  	}	
  181:  }
  0076 1b83         LEAS  3,SP
  0078 3d           RTS   
  182:  
  183:  

⌨️ 快捷键说明

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