🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11224

Help writing a vblank server in assembly

#11224
From: Neil Weinstock
Date: Sun, 29 Jan 1989 06:57
34 lines
1579 bytes
[ The line eater is written in COBOL ]

I wonder if y'all can help me out.  I'm trying to write a very simple vblank
server, and can't quite put all the pieces together.  Installing the server is 
no problem, it's just the assembly language bit that's holding me up.  I haven't
done any 68K assembly before, and the references I have (RKMs, Manx manual) 
aren't really much of a help.

Anyway, all I want the server to do is this:

/*  C representation of simple VBLANK server */
extern long sig;
extern struct Task *t1;

int toggle = 0;

server_routine() {
	toggle = 1 - toggle;
	if (toggle) Signal(t1,sig);
	return;
}


That's it.  I figure the whole thing should be 10 or 15 lines long, max.
I think I understand how to get A4 loaded at the beginning, but the Signal()
call has got me stumped. Oh yeah, I'm using Manx 3.6, small code and data,
32 bit ints.

Any help would be most appreciated.

 /.- -- .. --. .- .-. ..- .-.. . ... .- -- .. --. .- .-. ..- .-.. . ...\
/ Neil Weinstock | att!cord!nsw     | "One man's garbage is another     \
\ AT&T Bell Labs | nsw@cord.att.com | man's prune danish." - Harv Laser /
 \.- -- .. --. .- .-. ..- .-.. . ... .- -- .. --. .- .-. ..- .-.. . .../
Technical Details
Message-ID: <676@cord.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!rutgers!att!cord!nsw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!rutgers!att!cord!nsw
From: nsw@cord.UUCP (Neil Weinstock)
Newsgroups: comp.sys.amiga.tech
Subject: Help writing a vblank server in assembly
Message-ID: <676@cord.UUCP>
Date: 29 Jan 89 06:57:48 GMT
Distribution: usa
Organization: The Flying Squid Patrol
Lines: 34