;	Microtec(R) Research Inc. 68K C Compiler 4.5G
;	Host Operating System - SUN4 UNIX
;	Command Line Options Specified:
;		-S -Ri/tmp/initpit21453.1 -o initpit.s -Fsm initpit.c 

	TTL	initpit.c
;	MCC68K 4.5G s S4U040295 s403-Nov-95.16:28:34
	OPT	NOABSPCADD,E,NOPCR,P=68000,CASE
	NAME	initpit
	SECTION code,,C
	XDEF	_initgen
_initgen:
;#include "pit68230.h"
;/*  #include "initpit.h" */
;
;
;
;void initgen()
;{
;PGCR=0x3a ; /*  mode 0 */
	move.b	#58,15990913
;PCDR= 0xff;
	move.b	#255,15990937
;PCDDR=0x1b;
	move.b	#27,15990921
;PSRR=0x1f;
	move.b	#31,15990915
;PACR=0xa0;
	move.b	#160,15990925
;PBCR=0xa0;
	move.b	#160,15990927
;}
	rts
;	 code: 50 bytes   stack: 0 bytes

	
	
	
	XDEF	_init_leds
_init_leds:
;
;void init_leds()
;{
;PCDR |= 4; /*  inhibition manips */
	ori.b	#4,15990937
;PADR=0xff;
	move.b	#255,15990929
;PBDR=0;
	clr.b	15990931
;PADDR=0xff;
	move.b	#255,15990917
;PBDDR=0;
	clr.b	15990919
;PCDR &= 0xfc; /*  masquage 2 derniers bits */
	andi.b	#252,15990937
;PCDR |= 2; /*  choix manip */
	ori.b	#2,15990937
;PCDR &= 0xef; /*  activation */
	andi.b	#239,15990937
;}
	rts
;	 code: 62 bytes   stack: 0 bytes

	
	
	
	XDEF	_init_clavier
_init_clavier:
;
;void init_clavier()
;{
;PCDR |= 4; /*  inhibition manips */
	ori.b	#4,15990937
;PADR=0xff;
	move.b	#255,15990929
;PBDR=0xff;
	move.b	#255,15990931
;PADDR=0x1f;
	move.b	#31,15990917
;PBDDR=0;
	clr.b	15990919
;PCDR &= 0xfc; /*  masquage 2 derniers bits */
	andi.b	#252,15990937
;PCDR |= 3; /*  choix manip */
	ori.b	#3,15990937
;PCDR &= 0xef; /*  activation */
	andi.b	#239,15990937
;}
	rts
;	 code: 64 bytes   stack: 0 bytes

	
	
	
	
	XDEF	_init_afficheurs
_init_afficheurs:
;
;void init_afficheurs()
;{
;PCDR |= 4; /*  inhibition manips */
	ori.b	#4,15990937
;PADR=0xff;
	move.b	#255,15990929
;PBDR=0;
	clr.b	15990931
;PADDR=0xff;
	move.b	#255,15990917
;PBDDR=0xff;
	move.b	#255,15990919
;PCDR &= 0xfc; /*  masquage 2 derniers bits et choix manip */
	andi.b	#252,15990937
;PCDR &= 0xef; /*  activation */
	andi.b	#239,15990937
;}
	rts
;	 code: 56 bytes   stack: 0 bytes

	
	
	
	
	XDEF	_init_can
_init_can:
;
;void init_can()
;{
;PCDR |= 4; /*  inhibition manips */
	ori.b	#4,15990937
;PADR=0;
	clr.b	15990929
;PBDR=0;
	clr.b	15990931
;PADDR=0;
	clr.b	15990917
;PBDDR=0;
	clr.b	15990919
;PCDR &= 0xfc; /*  masquage 2 derniers bits */
	andi.b	#252,15990937
;PCDR |= 1; /*  choix manip */
	ori.b	#1,15990937
;PCDR &= 0xef; /*  activation */
	andi.b	#239,15990937
;}
	rts
;	 code: 58 bytes   stack: 0 bytes

	
	
	
	
	XDEF	_init_cpr
_init_cpr:
;*** allocation of local variables ***
;	nombre = d2
;
;
;/* Fonction temporisation a l'aide du timer
; parametre: nombre de fois 3.2 us  */
;
;void init_cpr(int nombre)
;
;{
	move.l	d2,-(sp)
	move.l	8(sp),d2
; if (nombre==0) nombre = 1;
	bne.s	L1
	moveq	#1,d2
; CPRH = (nombre & 0xFF0000)>>16;
L1:
	move.l	d2,d0
	andi.l	#16711680,d0
	moveq	#16,d1
	asr.l	d1,d0
	move.b	d0,15990951
; CPRM = (nombre & 0x00FF00)>>8;
	move.l	d2,d0
	andi.l	#65280,d0
	asr.l	#8,d0
	move.b	d0,15990953
; CPRL = (nombre & 0x0000FF);
	move.b	d2,15990955
; TCR |= 1; /* demmarage */
	ori.b	#1,15990945
;}
	move.l	(sp)+,d2
	rts
;	 code: 62 bytes   stack: 0 bytes
	END
; code: 352 bytes
