home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!gatech!destroyer!ais.org!empath
- From: empath@ais.org (Tim Triemstra)
- Subject: Re: 32bit Zortech Pointers
- Message-ID: <C06441.8oI@ais.org>
- Organization: UMCC
- References: <C03usF.8CA@ais.org> <1992Dec31.203531.1158@proto.com>
- Date: Fri, 1 Jan 1993 09:09:32 GMT
- Lines: 35
-
- > I don't understand what INT calls you converted... One thing to be
- > careful of is that if you are trying to pass data to a real mode
- > TSR of some sort, then you need to put the data in a real mode
- > buffer... could this be part of your problem?
-
- Sorry about the not-so-clear wording on the INT calls, I meant INTeger
- calls. I'm not dealing with any real mode TSRs, or even any external code
- to speak of. The entire program encapsulates only 2 small files that could
- easily just be one.
-
- The code goes something like this:
-
- unsigned char *buffer;
- //malloc the buffer I believe
- InitVoice(buffer);
-
- My pointer logic is real bad at 4am but that is the gist of it. In the
- 32bit mode, I get static - but the proper amount of static which mean that
- the interrupt is being called and killed correctly, but not given the proper
- data - hence the concept of improper pointer holding in 32bit modes with
- interrupts. I'm going to do alot more combing through the code to make SURE
- that there isn't any 4byte integer calls where on 2 bytes are expected, but
- I've done days of that and I'm pretty sure that is safe. I was just curious
- if you had to protect pointers that were to be handled by both interrupt
- and non-interrupt code. I have alot of 6510 ASM experience with interrupts
- but the knowledge of interrupts ends at a theoretical level with 80xxx
- processors.
-
- Thanks again guys. Joe - I sent this code a while back UUENCODED to
- you att proto com, so if this interests you and you would "like" to get
- it working go fer it. It's just gonna be GNU distrubuted when done anyhow.
-
- Tim
- Empath@Ais.Org
-
-