Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornell!travelers.mail.cornell.edu!news.kei.com!news.mathworks.com!news.duke.edu!news-feed-1.peachnet.edu!gatech!newsxfer.itd.umich.edu!news.cic.net!infoserv.illinois.net!news.mci.net!newsfeed.internetmci.com!miwok!unicom!gilbert
From: gilbert@marin.cc.ca.us (Tim Gilbert)
Subject: Difficulty of implementing scheme in assembly?
Message-ID: <D5LLD3.3yG@marin.cc.ca.us>
Keywords: cbm, scheme, assembly
Organization: College of Marin, Kentfield, CA 94904
X-Newsreader: TIN [version 1.2 PL2]
Date: Fri, 17 Mar 1995 18:43:50 GMT
Lines: 24

Hi, all...  My roommate has an old commodore-128 which I have recently decided
to learn how to program.  I'd let to get a scheme interpreter up and running
on it; however there is no C compiler for it, so I can't just try to port
SIOD or one of the many other schemes out there.

I really have two questions:

(1) Could anyone estimate how difficult it would be to write a (very simple;
    eg no compiling) interpreter in assembly?  In case you've forgotten, the
    C-128 has three registers which are 8 bits each.  The X and Y registers
    are used for addressing (CAR/CDR?) and the A (accumulator) for arithmetic.

(2) Can anyone recommend a good free scheme which I can use to figure out
    more general algorithmic ideas?  My requirements are [a] must be as small
    as possible (the source code, that is), and [b] must be as easy to under-
    stand as possible.  I have looked at SIOD, but found the code a bit
    dense.

Any replies would be greatly appreciated, even "you're crazy", "assembly is
the tool of the devil", etc.

Thanks,						-- Tim
-- 
Tim Gilbert <> gilbert@marin.cc.ca.us <> http://www.marin.cc.ca.us/~gilbert/
