gnupic: GPsim fatal bug with 18f452?


Previous by date: 7 Jan 2005 17:30:58 +0000 Re: DIY USB programmer ?, Manuel Bessler
Next by date: 7 Jan 2005 17:30:58 +0000 Problems compiling gpsim, Diego Belotti
Previous in thread: 7 Jan 2005 17:30:58 +0000 GPsim fatal bug with 18f452?, David McNab
Next in thread:

Subject: Re: GPsim fatal bug with 18f452?
From: Scott Dattalo ####@####.####
Date: 7 Jan 2005 17:30:58 +0000
Message-Id: <Pine.LNX.4.60.0501070923530.413@ruckus.brouhaha.com>

On Sat, 8 Jan 2005, David McNab wrote:

<snip>

> However, when i run this in gpsim, the 'goto 0x2c' actually jumps to 0x58.
>
> As I understand, the argument of 'goto', 0x16, is a /word/ address, not a 
> /byte/ address. So the '00016' argument gets doubled to the /byte/ address of 
> 0x2c.
>
> So it seems gpsim is doubling this address twice, to target 0x58.
> Needless to say, the program ends up in Wonderland amongst a pile of invalid 
> opcodes.


> Has it been fixed in CVS? Is it worth a few hours in possible GTK+Extra2.0 
> dependency hell to build/install gpsim from cvs?

This has definitely been fixed. I use the 18f452 all of the time now and 
know that this okay. As an interim fix, you may wish to try changing the 
goto's to bra's. Also, instead of diving into the gtk extra 2.0 hell pit, 
you may wish to update your code from CVS and configuring it to run with 
the older gtk stuff. That's still working AFAIK. (All you need to do is 
run configure like this: ./configure --enable-gtk1 )

Scott

Previous by date: 7 Jan 2005 17:30:58 +0000 Re: DIY USB programmer ?, Manuel Bessler
Next by date: 7 Jan 2005 17:30:58 +0000 Problems compiling gpsim, Diego Belotti
Previous in thread: 7 Jan 2005 17:30:58 +0000 GPsim fatal bug with 18f452?, David McNab
Next in thread:


Powered by ezmlm-browse 0.20.