$NOMACRO
$SEGMENTED CASE MOD167
;
; '..\RAM\INC\ASMUTIL.SRC' GENERATED FROM INPUT FILE '..\RAM\INC\ASMUTIL.C'
; COMPILER INVOKED BY:
;	C:\C166\BIN\C166.EXE ..\RAM\INC\ASMUTIL.C MOD167 NOINIT LARGE FLOAT64 SYMBOLS CODE PREPRINT SRC
;
$MODINF (55)
		 NAME ASMUTIL

         CC19IC  DEFR  0F166H
         CC28IC  DEFR  0F178H
        BUSCON1  DEFR  0FF14H
         CC18IC  DEFR  0F164H
         CC27IC  DEFR  0F176H
        BUSCON0  DEFR  0FF0CH
         CC17IC  DEFR  0F162H
         CC26IC  DEFR  0F174H
         CC16IC  DEFR  0F160H
         CC25IC  DEFR  0F172H
            PSW  DEFR  0FF10H
         CC15IC  DEFR  0FF96H
         CC24IC  DEFR  0F170H
         CC14IC  DEFR  0FF94H
         CC23IC  DEFR  0F16EH
         CC13IC  DEFR  0FF92H
         CC22IC  DEFR  0F16CH
         CC31IC  DEFR  0F194H
         CC12IC  DEFR  0FF90H
         CC21IC  DEFR  0F16AH
         CC30IC  DEFR  0F18CH
         CC11IC  DEFR  0FF8EH
         CC20IC  DEFR  0F168H
         CC10IC  DEFR  0FF8CH
            TFR  DEFR  0FFACH
          T6CON  DEFR  0FF48H
          T5CON  DEFR  0FF46H
          T4CON  DEFR  0FF44H
          T3CON  DEFR  0FF42H
          XP3IC  DEFR  0F19EH
          T2CON  DEFR  0FF40H
          XP2IC  DEFR  0F196H
          ADCON  DEFR  0FFA0H
          XP1IC  DEFR  0F18EH
          XP0IC  DEFR  0F186H
          S0CON  DEFR  0FFB0H
          S0TIC  DEFR  0FF6CH
          S0RIC  DEFR  0FF6EH
         SYSCON  DEFR  0FF12H
          ADEIC  DEFR  0FF9AH
          ADCIC  DEFR  0FF98H
          S0EIC  DEFR  0FF70H
            MDC  DEFR  0FF0EH
         WDTCON  DEFR  0FFAEH
          CC9IC  DEFR  0FF8AH
          CC8IC  DEFR  0FF88H
         SSCTIC  DEFR  0FF72H
         SSCCON  DEFR  0FFB2H
          CC7IC  DEFR  0FF86H
          CC6IC  DEFR  0FF84H
         SSCRIC  DEFR  0FF74H
          CC5IC  DEFR  0FF82H
          CC4IC  DEFR  0FF80H
          CC3IC  DEFR  0FF7EH
          CC2IC  DEFR  0FF7CH
          CC1IC  DEFR  0FF7AH
          CC0IC  DEFR  0FF78H
         SSCEIC  DEFR  0FF76H
           ISNC  DEFR  0F1DEH
         S0TBIC  DEFR  0F19CH
         T78CON  DEFR  0FF20H
           CRIC  DEFR  0FF6AH
           T8IC  DEFR  0F17CH
           T7IC  DEFR  0F17AH
         T01CON  DEFR  0FF50H
           T6IC  DEFR  0FF68H
           T5IC  DEFR  0FF66H
           T4IC  DEFR  0FF64H
           T3IC  DEFR  0FF62H
           T2IC  DEFR  0FF60H
           T1IC  DEFR  0FF9EH
           T0IC  DEFR  0FF9CH
           CCM7  DEFR  0FF28H
           CCM6  DEFR  0FF26H
           CCM5  DEFR  0FF24H
           CCM4  DEFR  0FF22H
        PWMCON1  DEFR  0FF32H
           CCM3  DEFR  0FF58H
        PWMCON0  DEFR  0FF30H
           CCM2  DEFR  0FF56H
           CCM1  DEFR  0FF54H
             P5  DEFR  0FFA2H
           CCM0  DEFR  0FF52H
             P3  DEFR  0FFC4H
          PWMIC  DEFR  0F17EH
        BUSCON4  DEFR  0FF1AH
        BUSCON3  DEFR  0FF18H
         CC29IC  DEFR  0F184H
        BUSCON2  DEFR  0FF16H


                 ASSUME  DPP3 : SYSTEM



                 REGDEF   R0 - R15


    ?PR?ASMUTIL  SECTION  CODE WORD 'FCODE'
; line 1: 
; line 2: #ifndef  _asmutil_c_
; line 3: #define  _asmutil_c_
; line 4: 
; line 5: #include "asmutil.h"
; line 6: 
; line 7: #pragma SRC
; line 8: 
; line 9: 
; line 10: void writeFarWord( unsigned int seg, unsigned int address, unsigned int val ) {

	writeFarWord  PROC  FAR
	PUBLIC  writeFarWord
; FUNCTION writeFarWord (BEGIN  RMASK = @0x8000)
;---- Variable 'val' assigned to Register 'R10' ----
;---- Variable 'address' assigned to Register 'R9' ----
;---- Variable 'seg' assigned to Register 'R8' ----
; line 11: // variable val     assigned to R10
; line 12: // variable address assigned to R9
; line 13: // variable seg     assigned to R8
; line 14: #pragma ASM
; line 15: 	EXTS	R8,#1
	EXTS	R8,#1
; line 16: 	movw	[R9],R10
	movw	[R9],R10
; line 17: 	nop
	nop
; line 18: #pragma ENDASM
; line 19: }
	RETS	
; FUNCTION writeFarWord (END    RMASK = @0x8000)
	writeFarWord  ENDP
; line 20: 
; line 21: void writeFarByte( unsigned int seg, unsigned int address, unsigned char val ) {

	writeFarByte  PROC  FAR
	PUBLIC  writeFarByte
; FUNCTION writeFarByte (BEGIN  RMASK = @0x8000)
;---- Variable 'val' assigned to Register 'R10' ----
;---- Variable 'address' assigned to Register 'R9' ----
;---- Variable 'seg' assigned to Register 'R8' ----
; line 22: // variable val     assigned to R10
; line 23: // variable address assigned to R9
; line 24: // variable seg     assigned to R8
; line 25: #pragma ASM
; line 26: 	push	R7
	push	R7
; line 27: 	mov		R7,R10
	mov		R7,R10
; line 28: 	EXTS	R8,#1
	EXTS	R8,#1
; line 29: 	movb	[R9],RL7
	movb	[R9],RL7
; line 30: 	nop
	nop
; line 31: 	pop		R7
	pop		R7
; line 32: #pragma ENDASM
; line 33: }
	RETS	
; FUNCTION writeFarByte (END    RMASK = @0x8000)
	writeFarByte  ENDP
; line 34: 
; line 35: 
; line 36: 
; line 37: void reset_to_rom( void ) {

	reset_to_rom  PROC  FAR
	PUBLIC  reset_to_rom
; FUNCTION reset_to_rom (BEGIN  RMASK = @0x8000)
; line 38: #pragma ASM
; line 39: 	jmps	#0,0
	jmps	#0,0
; line 40: #pragma ENDASM
; line 41: }
	RETS	
; FUNCTION reset_to_rom (END    RMASK = @0x8000)
	reset_to_rom  ENDP
; line 42: 
; line 43: void reset_to_ram( void ) {

	reset_to_ram  PROC  FAR
	PUBLIC  reset_to_ram
; FUNCTION reset_to_ram (BEGIN  RMASK = @0x8000)
; line 44: #pragma ASM
; line 45: 	jmps	#0,36
	jmps	#0,36
; line 46: #pragma ENDASM
; line 47: }
	RETS	
; FUNCTION reset_to_ram (END    RMASK = @0x8000)
	reset_to_ram  ENDP
    ?PR?ASMUTIL  ENDS


; line 48: 
; line 49: 
; line 50: #endif
; line 51: 
; line 52: 
; line 53: 
; line 54: 
; line 55: 
; line 56: 
; line 57: 
; line 58: 

	END
