🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #28642

Mark Williams C: some findings...

#28642
From: Warren Long
Date: Thu, 08 Oct 1987 05:18
43 lines
2623 bytes
Well, recently I decided to pull my 'SpaceWar' out of the dust, and
see about a few more modifications.  Since I now use MWC 2.0 
(instead of Megamax), I thought I should get it working with MWC.
Most changes were trivial, but the resultant code took 44K,
instead of about 33K, for the SAME program.  I find this a little
alarming.  That is a very substantial increase.

While trying to clean up some glitches, I discovered that using
'fopen/fgetw', while working with Megamax, would not work with MWC.
A few random substitutions of a pair of 'getc' for each 'fgetw' made
the whole thing work.  I have no idea how this could affect anything.
I am open to suggestions/hints.

This did make the program run identically to the one produced with
Megamax.  BOTH sets of spaceships were glitched identically.  I was
hoping for the glitches to disappear, then I could blame the compiler.
What I did try was to use 'Fopen/Fread'.  This fixed all my little
glitches.  Now that I think about it, I have been having lots of
strange things happenning with (little)fopen/getc etc.  Is this a
known problem??  Have I been struggling with a well-known bug??

Other comments:   I have been trying to adapt some Megamax code
which used in-line assembly code.  To use MWC, I separated out the
assembly code into individual little routines, and tried to get every
thing to compile.  HOW DO I TELL THE ASSEMBLER THE ADDRESS OF VARIABLES
IN MY C-PROGRAM??  It is easy with Megamax in-line code, just use
the variable's name.  Help!

Comment on MSH:  Has anyone gotten the aliasing to work? I can type
in their example 'set in .cmd lc="ls -l"', and it works just fine.  But
when I try to do something more useful, I can't get it to work.
For example, 'set in .cmd cds="cd d:\sw"', does not result in my
CD-ing to the appropriate directory.  Can someone offer a hint??

Thanks for letting me ramble...
Warren Long

-- 
=-=-=-=-=-Warren Long at University of Saskatchewan, Canada-=-=-=-=-
Home: 78 Carleton Dr.,Saskatoon, Sasakatchewan, S7H 3N6
Phone: (306)-955-1237
=-=-=-=-=-U-Email: ...!ihnp4!alberta!sask!long     -=-=-=-=-=-=-=-=-
Technical Details
Message-ID: <879@sask.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!ubc-vision!alberta!sask!long

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!uunet!husc6!mit-eddie!uw-beaver!ubc-vision!alberta!sask!long
From: long@sask.UUCP (Warren Long)
Newsgroups: comp.sys.atari.st
Subject: Mark Williams C: some findings...
Message-ID: <879@sask.UUCP>
Date: Thu, 8-Oct-87 01:18:00 EDT
Article-I.D.: sask.879
Posted: Thu Oct  8 01:18:00 1987
Date-Received: Mon, 12-Oct-87 06:12:37 EDT
Organization: University of Saskatchewan
Lines: 43