A166 MACRO ASSEMBLER ASMUTIL 01/12/05 22:15:54 PAGE 1 DOS MACRO ASSEMBLER A166 V3.10 OBJECT MODULE PLACED IN ..\RAM\INC\ASMUTIL.OBJ ASSEMBLER INVOKED BY: C:\C166\BIN\A166.EXE ..\RAM\INC\ASMUTIL.SRC CASE MOD167 SEGMENTED SET(LARGE) LOC OBJ LINE SOURCE 1 $NOMACRO 2 $SEGMENTED CASE MOD167 3 ; 4 ; '..\RAM\INC\ASMUTIL.SRC' GENERATED FROM INPUT FILE '..\RAM\INC\ASMUTIL.C' 5 ; COMPILER INVOKED BY: 6 ; C:\C166\BIN\C166.EXE ..\RAM\INC\ASMUTIL.C MOD167 NOINIT LARGE FLOAT64 SYMBOLS CODE PREPRINT SRC 7 ; 8 $MODINF (55) 9 NAME ASMUTIL 10 11 CC19IC DEFR 0F166H 12 CC28IC DEFR 0F178H 13 BUSCON1 DEFR 0FF14H 14 CC18IC DEFR 0F164H 15 CC27IC DEFR 0F176H 16 BUSCON0 DEFR 0FF0CH 17 CC17IC DEFR 0F162H 18 CC26IC DEFR 0F174H 19 CC16IC DEFR 0F160H 20 CC25IC DEFR 0F172H 21 PSW DEFR 0FF10H 22 CC15IC DEFR 0FF96H 23 CC24IC DEFR 0F170H 24 CC14IC DEFR 0FF94H 25 CC23IC DEFR 0F16EH 26 CC13IC DEFR 0FF92H 27 CC22IC DEFR 0F16CH 28 CC31IC DEFR 0F194H 29 CC12IC DEFR 0FF90H 30 CC21IC DEFR 0F16AH 31 CC30IC DEFR 0F18CH 32 CC11IC DEFR 0FF8EH 33 CC20IC DEFR 0F168H 34 CC10IC DEFR 0FF8CH 35 TFR DEFR 0FFACH 36 T6CON DEFR 0FF48H 37 T5CON DEFR 0FF46H 38 T4CON DEFR 0FF44H 39 T3CON DEFR 0FF42H 40 XP3IC DEFR 0F19EH 41 T2CON DEFR 0FF40H 42 XP2IC DEFR 0F196H 43 ADCON DEFR 0FFA0H 44 XP1IC DEFR 0F18EH 45 XP0IC DEFR 0F186H 46 S0CON DEFR 0FFB0H 47 S0TIC DEFR 0FF6CH 48 S0RIC DEFR 0FF6EH 49 SYSCON DEFR 0FF12H 50 ADEIC DEFR 0FF9AH 51 ADCIC DEFR 0FF98H 52 S0EIC DEFR 0FF70H 53 MDC DEFR 0FF0EH 54 WDTCON DEFR 0FFAEH 55 CC9IC DEFR 0FF8AH 56 CC8IC DEFR 0FF88H 57 SSCTIC DEFR 0FF72H 58 SSCCON DEFR 0FFB2H A166 MACRO ASSEMBLER ASMUTIL 01/12/05 22:15:54 PAGE 2 59 CC7IC DEFR 0FF86H 60 CC6IC DEFR 0FF84H 61 SSCRIC DEFR 0FF74H 62 CC5IC DEFR 0FF82H 63 CC4IC DEFR 0FF80H 64 CC3IC DEFR 0FF7EH 65 CC2IC DEFR 0FF7CH 66 CC1IC DEFR 0FF7AH 67 CC0IC DEFR 0FF78H 68 SSCEIC DEFR 0FF76H 69 ISNC DEFR 0F1DEH 70 S0TBIC DEFR 0F19CH 71 T78CON DEFR 0FF20H 72 CRIC DEFR 0FF6AH 73 T8IC DEFR 0F17CH 74 T7IC DEFR 0F17AH 75 T01CON DEFR 0FF50H 76 T6IC DEFR 0FF68H 77 T5IC DEFR 0FF66H 78 T4IC DEFR 0FF64H 79 T3IC DEFR 0FF62H 80 T2IC DEFR 0FF60H 81 T1IC DEFR 0FF9EH 82 T0IC DEFR 0FF9CH 83 CCM7 DEFR 0FF28H 84 CCM6 DEFR 0FF26H 85 CCM5 DEFR 0FF24H 86 CCM4 DEFR 0FF22H 87 PWMCON1 DEFR 0FF32H 88 CCM3 DEFR 0FF58H 89 PWMCON0 DEFR 0FF30H 90 CCM2 DEFR 0FF56H 91 CCM1 DEFR 0FF54H 92 P5 DEFR 0FFA2H 93 CCM0 DEFR 0FF52H 94 P3 DEFR 0FFC4H 95 PWMIC DEFR 0F17EH 96 BUSCON4 DEFR 0FF1AH 97 BUSCON3 DEFR 0FF18H 98 CC29IC DEFR 0F184H 99 BUSCON2 DEFR 0FF16H 100 101 102 ASSUME DPP3 : SYSTEM 103 104 105 106 REGDEF R0 - R15 107 108 109 ?PR?ASMUTIL SECTION CODE WORD 'FCODE' 110 ; line 1: 111 ; line 2: #ifndef _asmutil_c_ 112 ; line 3: #define _asmutil_c_ 113 ; line 4: 114 ; line 5: #include "asmutil.h" 115 ; line 6: 116 ; line 7: #pragma SRC 117 ; line 8: 118 ; line 9: 119 ; line 10: void writeFarWord( unsigned int seg, unsigned int address, unsigned int val ) { 120 121 writeFarWord PROC FAR 122 PUBLIC writeFarWord 123 ; FUNCTION writeFarWord (BEGIN RMASK = @0x8000) 124 ;---- Variable 'val' assigned to Register 'R10' ---- A166 MACRO ASSEMBLER ASMUTIL 01/12/05 22:15:54 PAGE 3 125 ;---- Variable 'address' assigned to Register 'R9' ---- 126 ;---- Variable 'seg' assigned to Register 'R8' ---- 127 ; line 11: // variable val assigned to R10 128 ; line 12: // variable address assigned to R9 129 ; line 13: // variable seg assigned to R8 130 ; line 14: #pragma ASM 131 ; line 15: EXTS R8,#1 000000 DC08 132 EXTS R8,#1 133 ; line 16: movw [R9],R10 000002 B8A9 134 movw [R9],R10 135 ; line 17: nop 000004 CC00 136 nop 137 ; line 18: #pragma ENDASM 138 ; line 19: } 000006 DB00 139 RETS 140 ; FUNCTION writeFarWord (END RMASK = @0x8000) 141 writeFarWord ENDP 142 ; line 20: 143 ; line 21: void writeFarByte( unsigned int seg, unsigned int address, unsigned char val ) { 144 145 writeFarByte PROC FAR 146 PUBLIC writeFarByte 147 ; FUNCTION writeFarByte (BEGIN RMASK = @0x8000) 148 ;---- Variable 'val' assigned to Register 'R10' ---- 149 ;---- Variable 'address' assigned to Register 'R9' ---- 150 ;---- Variable 'seg' assigned to Register 'R8' ---- 151 ; line 22: // variable val assigned to R10 152 ; line 23: // variable address assigned to R9 153 ; line 24: // variable seg assigned to R8 154 ; line 25: #pragma ASM 155 ; line 26: push R7 000008 ECF7 156 push R7 157 ; line 27: mov R7,R10 00000A F07A 158 mov R7,R10 159 ; line 28: EXTS R8,#1 00000C DC08 160 EXTS R8,#1 161 ; line 29: movb [R9],RL7 00000E B9E9 162 movb [R9],RL7 163 ; line 30: nop 000010 CC00 164 nop 165 ; line 31: pop R7 000012 FCF7 166 pop R7 167 ; line 32: #pragma ENDASM 168 ; line 33: } 000014 DB00 169 RETS 170 ; FUNCTION writeFarByte (END RMASK = @0x8000) 171 writeFarByte ENDP 172 ; line 34: 173 ; line 35: 174 ; line 36: 175 ; line 37: void reset_to_rom( void ) { 176 177 reset_to_rom PROC FAR 178 PUBLIC reset_to_rom 179 ; FUNCTION reset_to_rom (BEGIN RMASK = @0x8000) 180 ; line 38: #pragma ASM 181 ; line 39: jmps #0,0 000016 FA000000 182 jmps #0,0 183 ; line 40: #pragma ENDASM 184 ; line 41: } 00001A DB00 185 RETS 186 ; FUNCTION reset_to_rom (END RMASK = @0x8000) 187 reset_to_rom ENDP 188 ; line 42: 189 ; line 43: void reset_to_ram( void ) { 190 A166 MACRO ASSEMBLER ASMUTIL 01/12/05 22:15:54 PAGE 4 191 reset_to_ram PROC FAR 192 PUBLIC reset_to_ram 193 ; FUNCTION reset_to_ram (BEGIN RMASK = @0x8000) 194 ; line 44: #pragma ASM 195 ; line 45: jmps #0,36 00001C FA002400 196 jmps #0,36 197 ; line 46: #pragma ENDASM 198 ; line 47: } 000020 DB00 199 RETS 200 ; FUNCTION reset_to_ram (END RMASK = @0x8000) 201 reset_to_ram ENDP 202 ?PR?ASMUTIL ENDS 203 204 205 ; line 48: 206 ; line 49: 207 ; line 50: #endif 208 ; line 51: 209 ; line 52: 210 ; line 53: 211 ; line 54: 212 ; line 55: 213 ; line 56: 214 ; line 57: 215 ; line 58: 216 217 END A166 MACRO ASSEMBLER ASMUTIL 01/12/05 22:15:54 PAGE 5 SYMBOL TABLE LISTING ------ ----- ------- N A M E TYPE VALUE I ATTRIBUTES ?PR?ASMUTIL. . . . ---- ---- SECTION ADCIC. . . . . . . WORD FF98H A SFR ADCON. . . . . . . WORD FFA0H A SFR ADEIC. . . . . . . WORD FF9AH A SFR BUSCON0. . . . . . WORD FF0CH A SFR BUSCON1. . . . . . WORD FF14H A SFR BUSCON2. . . . . . WORD FF16H A SFR BUSCON3. . . . . . WORD FF18H A SFR BUSCON4. . . . . . WORD FF1AH A SFR CC0IC. . . . . . . WORD FF78H A SFR CC10IC . . . . . . WORD FF8CH A SFR CC11IC . . . . . . WORD FF8EH A SFR CC12IC . . . . . . WORD FF90H A SFR CC13IC . . . . . . WORD FF92H A SFR CC14IC . . . . . . WORD FF94H A SFR CC15IC . . . . . . WORD FF96H A SFR CC16IC . . . . . . WORD F160H A ESF CC17IC . . . . . . WORD F162H A ESF CC18IC . . . . . . WORD F164H A ESF CC19IC . . . . . . WORD F166H A ESF CC1IC. . . . . . . WORD FF7AH A SFR CC20IC . . . . . . WORD F168H A ESF CC21IC . . . . . . WORD F16AH A ESF CC22IC . . . . . . WORD F16CH A ESF CC23IC . . . . . . WORD F16EH A ESF CC24IC . . . . . . WORD F170H A ESF CC25IC . . . . . . WORD F172H A ESF CC26IC . . . . . . WORD F174H A ESF CC27IC . . . . . . WORD F176H A ESF CC28IC . . . . . . WORD F178H A ESF CC29IC . . . . . . WORD F184H A ESF CC2IC. . . . . . . WORD FF7CH A SFR CC30IC . . . . . . WORD F18CH A ESF CC31IC . . . . . . WORD F194H A ESF CC3IC. . . . . . . WORD FF7EH A SFR CC4IC. . . . . . . WORD FF80H A SFR CC5IC. . . . . . . WORD FF82H A SFR CC6IC. . . . . . . WORD FF84H A SFR CC7IC. . . . . . . WORD FF86H A SFR CC8IC. . . . . . . WORD FF88H A SFR CC9IC. . . . . . . WORD FF8AH A SFR CCM0 . . . . . . . WORD FF52H A SFR CCM1 . . . . . . . WORD FF54H A SFR CCM2 . . . . . . . WORD FF56H A SFR CCM3 . . . . . . . WORD FF58H A SFR CCM4 . . . . . . . WORD FF22H A SFR CCM5 . . . . . . . WORD FF24H A SFR CCM6 . . . . . . . WORD FF26H A SFR CCM7 . . . . . . . WORD FF28H A SFR CRIC . . . . . . . WORD FF6AH A SFR DPP3 . . . . . . . WORD FE06H A SFR ISNC . . . . . . . WORD F1DEH A ESF MDC. . . . . . . . WORD FF0EH A SFR P3 . . . . . . . . WORD FFC4H A SFR P5 . . . . . . . . WORD FFA2H A SFR PSW. . . . . . . . WORD FF10H A SFR PWMCON0. . . . . . WORD FF30H A SFR PWMCON1. . . . . . WORD FF32H A SFR PWMIC. . . . . . . WORD F17EH A ESF S0CON. . . . . . . WORD FFB0H A SFR A166 MACRO ASSEMBLER ASMUTIL 01/12/05 22:15:54 PAGE 6 S0EIC. . . . . . . WORD FF70H A SFR S0RIC. . . . . . . WORD FF6EH A SFR S0TBIC . . . . . . WORD F19CH A ESF S0TIC. . . . . . . WORD FF6CH A SFR SSCCON . . . . . . WORD FFB2H A SFR SSCEIC . . . . . . WORD FF76H A SFR SSCRIC . . . . . . WORD FF74H A SFR SSCTIC . . . . . . WORD FF72H A SFR SYSCON . . . . . . WORD FF12H A SFR T01CON . . . . . . WORD FF50H A SFR T0IC . . . . . . . WORD FF9CH A SFR T1IC . . . . . . . WORD FF9EH A SFR T2CON. . . . . . . WORD FF40H A SFR T2IC . . . . . . . WORD FF60H A SFR T3CON. . . . . . . WORD FF42H A SFR T3IC . . . . . . . WORD FF62H A SFR T4CON. . . . . . . WORD FF44H A SFR T4IC . . . . . . . WORD FF64H A SFR T5CON. . . . . . . WORD FF46H A SFR T5IC . . . . . . . WORD FF66H A SFR T6CON. . . . . . . WORD FF48H A SFR T6IC . . . . . . . WORD FF68H A SFR T78CON . . . . . . WORD FF20H A SFR T7IC . . . . . . . WORD F17AH A ESF T8IC . . . . . . . WORD F17CH A ESF TFR. . . . . . . . WORD FFACH A SFR WDTCON . . . . . . WORD FFAEH A SFR XP0IC. . . . . . . WORD F186H A ESF XP1IC. . . . . . . WORD F18EH A ESF XP2IC. . . . . . . WORD F196H A ESF XP3IC. . . . . . . WORD F19EH A ESF reset_to_ram . . . FAR 1CH R PUB SEC=?PR?ASMUTIL reset_to_rom . . . FAR 16H R PUB SEC=?PR?ASMUTIL writeFarByte . . . FAR 8H R PUB SEC=?PR?ASMUTIL writeFarWord . . . FAR 0H R PUB SEC=?PR?ASMUTIL ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)