public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Alan Lehotsky <apl@alum.mit.edu>
To: Geoff Keating <geoffk@geoffk.org>
Cc: apl@alum.mit.edu (Alan Lehotsky), cgen@sourceware.cygnus.com
Subject: Re: Can't see what's wrong with my simulator semantics code....
Date: Sat, 30 Jun 2001 12:10:00 -0000	[thread overview]
Message-ID: <p04330106b763d3fb5b77@[192.168.1.254]> (raw)
In-Reply-To: <jmr8w13hq7.fsf@geoffk.org>

At 12:12 PM -0700 6/30/01, Geoff Keating wrote:

>apl@alum.mit.edu (Alan Lehotsky) writes:
>
>> cgen claims
>>
>>      ERROR: read:array unknown option  #\)
>
>I'm not sure, but try '(and #xFFFF (srl rd 16))'...
>
>I have statements like
>
>     (set-psw Rd (and Rd (inv (sll 1 (and Rs #xF)))))
>
>which work.
>
>(It's kind of annoying that guile doesn't have a manual.)
>
>--
>- Geoffrey Keating <geoffk@geoffk.org>


	I found it.  You were close... The '#' only is for things like hex constants where it needs to be
	#x.

	I didn't know about the direct immediate forms, but using

		(const 16)

	works like a charm.


	cgen is really "cool" when you don't have to fight the error messages. 

-- Al
-- 
------------------------------------------------------------------------

		    Quality Software Management
		http://home.earthlink.net/users/~qsmgmt
			apl@alum.mit.edu
			(978)287-0435 Voice
			(978)808-6836 Cell
			(978)287-0436 Fax

	Software Process Improvement and Management Consulting
	     Language Design and Compiler Implementation

  reply	other threads:[~2001-06-30 12:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <p04330101b763b6596543.cygnus.local.cgen@[192.168.1.254]>
2001-06-30 11:55 ` Geoff Keating
2001-06-30 12:10   ` Alan Lehotsky [this message]
2001-06-30 12:25     ` Geoff Keating
2001-06-30 12:35       ` Alan Lehotsky
2001-06-30 17:12     ` Ben Elliston
2001-06-30 10:20 Alan Lehotsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='p04330106b763d3fb5b77@[192.168.1.254]' \
    --to=apl@alum.mit.edu \
    --cc=cgen@sourceware.cygnus.com \
    --cc=geoffk@geoffk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).