www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/01/19:11:35

Date: Fri, 31 May 1996 18:18:21 -0700 (PDT)
From: Samuel Vincent <svincent AT bestsn DOT sonoma DOT edu>
To: Jamul <mhommel AT trumpet DOT aix DOT calpoly DOT edu>
cc: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com,
moskewicz AT MEM DOT po DOT com
Subject: Re: COM port access
In-Reply-To: <Pine.A32.3.91.960530173355.53808A-100000@trumpet.aix.calpoly.edu>
Message-ID: <Pine.GSO.3.93.960531181413.21662D-100000@zippy>
MIME-Version: 1.0

On Thu, 30 May 1996, Jamul wrote:

>   Well, never did find the bug, unless it got confused by my desire for 8 
> bits AND a parity bit (how would I be able to read that in?  two 
Hrm. you can only do even/odd parity if you have 7 bits for the data bit.
(I think anyway...  I've never attempted it.)

> bytes?).  But I stuck in the svasync library and WHAM, instant success.  
> So, being a lazy American, I consider this project done.  Thanks, Sam!  
> If at first you don't succeed, use somebody else's library.

Thanks for letting me know it works ;)
If you can think of any improvements just let me know...

>   As for why I used inline assembly - I find it's much easier to do that 
> than to grep the proper syntax of a "registers" variable in C and so on.  I 
> love inline assembly - and the GAS syntax is natural to me, as I came 
> from Apple IIgs programming in my youth.  Though I could do with fewer 
> percent signs.
Yes, those percent signs get annoying after a while.
Maybe someone could come up with some macros in an include file
that could make inline assembly very simple, where the macros would
translate to the proper inline assembly syntax.  Although it's not really
_too_ tough to figure out.

>   Thanks for all your help!  If anybody wants to see some almost totally 
> uncommented GCC source for a top-down gauntlet-like 2 player game, you 
> are welcome to it.  As for the game itself, maybe I'll make it slightly 
> more entertaining and stick it on my web site.

Sure, I'd love to take a look at it.  Is there a single player mode?

-Sam


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019