Message-ID: <3AC49332.46A41034@csi.com>
Date: Fri, 30 Mar 2001 09:07:46 -0500
From: John Colagioia <JColagioia@csi.com>
Organization: No Conspiracy Here...
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en,fr,ru,es,it,ga,de,ja,gd,eu
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: Z-Machine Assembly
References: <3AC3820E.5C27FCB0@csi.com> <9a02t5$g6$1@eastnews1.east.sun.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.34.37.104
X-Original-NNTP-Posting-Host: 208.34.37.104
X-Trace: excalibur.gbmtech.net 985961300 208.34.37.104 (30 Mar 2001 09:08:20 EST)
Lines: 40
X-Authenticated-User: jnc
Path: news.duke.edu!newsgate.duke.edu!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!newsfeed.online.be!ams.uu.net!nyc.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:84755

Mark Musante - Sun Microsystems wrote:

> John Colagioia (JColagioia@csi.com) wrote:
> > I try a simple assembly program, and get the error message, "No _start
> > label!"  So, I start reading through the Perl code, and finally figure
> > out that a program has to start with "label _start"--and I can live
> > with that.  So now, my program stands at:
> >
> >     label _start
> >         print  "Hello, World!"
> >         print_char 13
> >         quit
> >
> > I assemble it, and I get a 64+kB (65,556B) out.z5 file which doesn't
> > seem to do anything in WinFrotz, and causes a fatal error in txd when I
> > try to disassemble it.
>
> The reason the file is 64k or so is that Matt pads the program
> so that his dynamic memory allocation routines work.  You define
> the objects & properties and whatnot and anything that's left over
> gets to be part of his malloc/free stuff.

Fair enough.  I figured it was more of a curiousity than a problem, but I
figured it was a good idea to make sure.  Just in case.

[...]

> To answer your other question, you may have to create a Main
> function -- scan the code for a function keyword.

Ah-ha!

Oops.  OK, this is going to take some work to update this to Perl 5.  Now I
get:
    "Use of uninitialized value in pack..."
But, yeah, that's getting closer, I think.

[...]


