gnupic: Re: [gnupic] gpsim/gpasm assertions


Previous by date: 23 May 2005 15:52:41 +0100 Re: [gnupic] gpsim/gpasm assertions, craigfranklin.users.sourceforge.net
Next by date: 23 May 2005 15:52:41 +0100 gpsim 0.21.4 - Mac OS X Tiger - Fink build, Mikey Sklar
Previous in thread: 23 May 2005 15:52:41 +0100 Re: [gnupic] gpsim/gpasm assertions, craigfranklin.users.sourceforge.net
Next in thread: 23 May 2005 15:52:41 +0100 Re: [gnupic] gpsim/gpasm assertions, Craig Franklin

Subject: Re: [gnupic] gpsim/gpasm assertions
From: "Scott Dattalo" ####@####.####
Date: 23 May 2005 15:52:41 +0100
Message-Id: <63037.67.124.108.185.1116859955.squirrel@67.124.108.185>

On Mon, 2005-05-23 at 09:26 +0100, Chris Emerson wrote:
> On Sat, May 21, 2005 at 09:38:05AM -0700, Scott Dattalo wrote:
>> The syntax in gpasm is:
>>
>>    .direct "A" "expression"
> [...]
>> If the expression evaluates to true, then gpsim will halt.
>
> Do you mean that, or do you mean gpsim halts when the expression is
> false (the normal sense of assertions)?

Oops - you're correct, my assertion about assertions was false. What I
meant to say is that gpsim halts if the expression evaluates to *false*.

I've also just checked in two new features:

  -- breakpoint expressions are now displayed along with breakpoints.
     If you write:

  .assert  "var2==6"
        nop
then the displayed break will look something like:

1: p16f873  Execution at 0x0075
    Expression:(var2==6)


  -- breakpoints can now have messages associtated with them.
     If you enter the command:

gpsim> break e 0x73, "a quoted string for a break point"

and then display the break:

5: p16f873  Execution at 0x0073
    Message:a quoted string for a break point

There's an issue with using quoted strings with assembly assertions;
currently gpasm does no parsing of assertion text (or any .direct type
text for that matter) and thus it's currently not possible to specify a
quote character as part of the string. I suppose the text parsing can be
part of gpsim instead... I'm not sure which is better; should gpsim or
gpasm parse string escapes?

Scott


Previous by date: 23 May 2005 15:52:41 +0100 Re: [gnupic] gpsim/gpasm assertions, craigfranklin.users.sourceforge.net
Next by date: 23 May 2005 15:52:41 +0100 gpsim 0.21.4 - Mac OS X Tiger - Fink build, Mikey Sklar
Previous in thread: 23 May 2005 15:52:41 +0100 Re: [gnupic] gpsim/gpasm assertions, craigfranklin.users.sourceforge.net
Next in thread: 23 May 2005 15:52:41 +0100 Re: [gnupic] gpsim/gpasm assertions, Craig Franklin


Powered by ezmlm-browse 0.20.