🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1235

Re: How to use Xbtimer() ?

#1235
From: bammi
Date: Thu, 17 Jul 1986 00:32
34 lines
1640 bytes
> C: void xbtimer(timer, control, data, vector)
>    int timer,control, data;
>    logn vector;
> 
> This function allows you to start a timer in the MFP 68901, timer 
> is the number of the timer in the 68901. Timer A:0 Timer B:1 ect...
> 
> The other two dat and control are placed in the data and control
> registers. The long parameter is the address of the interrupt routine.
> 
> I really think it would be more useful in assembly then C, but since I
> don't have an assembler to use this I can't.
> 
> 
> 	Phil Paone

*** REPLACE THIS LINE WITH YOUR MESSAGE ***
Another point:
	The routine designated in the vector must return using RTE and
not RTS, as it is handling the intr. 

	Assembly can be imbedded in alcyon C by using the asm
construct like:
	
	asm("rte");

so you don't really need an assembler to force an RTE. I'll try and
dig up some samle Xbtimer code that i once wrote.
-- 
					Jwahar R. Bammi
			       Usenet:  .....!decvax!cwruecmp!bammi
			        CSnet:  bammi@case
				 Arpa:  bammi%case@csnet-relay
			   CompuServe:  71515,155
Technical Details
Message-ID: <1523@cwruecmp.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!columbia!topaz!ll-xn!nike!ucbcad!ucbvax!decvax!cwruecmp!bammi
References: <2874@sdcrdcf.UUCP> <2748@caip.RUTGERS.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!columbia!topaz!ll-xn!nike!ucbcad!ucbvax!decvax!cwruecmp!bammi
From: bammi@cwruecmp.UUCP
Newsgroups: net.micro.atari16
Subject: Re: How to use Xbtimer() ?
Message-ID: <1523@cwruecmp.UUCP>
Date: Wed, 16-Jul-86 20:32:52 EDT
Article-I.D.: cwruecmp.1523
Posted: Wed Jul 16 20:32:52 1986
Date-Received: Fri, 18-Jul-86 01:07:14 EDT
References: <2874@sdcrdcf.UUCP> <2748@caip.RUTGERS.EDU>
Organization: CWRU Dept. Epid. & Biostat., Cleveland, OH
Lines: 34