Article View: comp.sys.misc
Article #860Re: Interrupts on the N* Advantage
From: ddrex
Date: Tue, 02 Dec 1986 10:40
Date: Tue, 02 Dec 1986 10:40
47 lines
2741 bytes
2741 bytes
/* Written 7:12 pm Nov 23, 1986 by rbloom@apg-1.arpa in gorgo.UUCP:comp.sys.misc */
/* ---------- "Interrupts on the N* Advantage" ---------- */
Help.
I find I have to write an interrupt-driven application for
the NorthStar Advantage. Unfortunately, I don't know how.
Specifically, I do know how to enable the interrupts, and write
the interrupt handler, but actually what happens at interrupt
time eludes me.
At the interrupt, the z80 jumps to the interrupt routine.
Where? My z80 book says, "the z80 expects an [RST or CALL]
instruction to be placed on its data buss [by the interrupting
device]" how it do dat? Two people who I asked said "to where
you program it to" but I have no idea how to do that.
I have a Advantage technical manual. It may have the info I
need but I find it incomprehensible. (I gather that interrupt
routines are strongly hardware-dependant.) And I do understand
that the Advantage is not very fast, but can't believe a simple
get-and-put routine with interrupts wouldn't be fast enough for
4800 baud.
So, can someone help me out? I'm trying to store the input
characters from the SIO card away till they can be processed. I
have DTR control on the port but I haven't been able to get that
to work. (I'm trying to write a very simple high-speed commo
program.) I really need a low-level example.
bob bloom
/* End of text from gorgo.UUCP:comp.sys.misc */
A very reasonable book on this subject, and just about everything else you'll
need to know about z80 assembumbler is, "Z80 Assembly Language Programming",
by Lance Levanthal, published by Osborne/McGraw Hill.
There's a whole heluva a lot more to handling ints than just setting the
mode, enabling, and waiting for one to happen. I suggest you read the book
(chapter 12). Lots of good example code.
David Drexler
-- UUCP: {ihnp4,cbosgd,okstate,oktext,uokmax}!occrsh!gorgo!ddrex
-- FidoNet: 19/1 -or- decvax!encore!vaxine!spark!147!1!drexler
-- AT&T: [405] 728-2463 (data only: 2400/1200/300 bps)
-- Quote: "You may wager your saccharoid mule that I am!"
Technical Details
Message-ID:
<58600005@gorgo.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!sundc!oktext!occrsh!occrsh.UUCP!gorgo.UUCP!authorplaceholderReferences:
<1084@brl-adm.ARPA>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!sundc!oktext!occrsh!occrsh.UUCP!gorgo.UUCP!authorplaceholder From: ddrex@gorgo.UUCP Newsgroups: comp.sys.misc Subject: Re: Interrupts on the N* Advantage Message-ID: <58600005@gorgo.UUCP> Date: Tue, 2-Dec-86 05:40:00 EST Article-I.D.: gorgo.58600005 Posted: Tue Dec 2 05:40:00 1986 Date-Received: Thu, 4-Dec-86 20:00:57 EST References: <1084@brl-adm.ARPA> Lines: 47 Nf-ID: #R:brl-adm.ARPA:-108400:gorgo.UUCP:58600005:000:2120 Nf-From: gorgo.UUCP!ddrex Dec 2 04:40:00 1986