newsSimulavr: an AVR simulator - News: simulavr-0.1.1 released

 
 
Latest News
simulavr release 1.0.0 posted by tomk, Tue 14 Feb 2012 06:31:49 PM UTC - 0 replies
Simulavr - Updates posted by onnokort, Sat 24 Apr 2010 10:22:52 AM UTC - 0 replies
simulavr 0.1.2.2 release. posted by rivetwa, Thu 17 Feb 2005 01:53:11 AM UTC - 0 replies
simulavrxx-0.8.005 uploaded posted by rivetwa, Wed 09 Feb 2005 03:43:00 AM UTC - 0 replies
rolled simulavrxx-0.8.004 tarball posted by rivetwa, Thu 11 Nov 2004 06:56:40 AM UTC - 0 replies
[Submit News]
[20 news in archive]

simulavr-0.1.1 released

Item posted by Theodore A. Roth <troth> on Tue 10 Sep 2002 04:25:14 AM UTC.

Comments:

test_c/demo.c parameters backwards in outb? (posted by William, Thu 17 Oct 2002 04:09:01 AM UTC)

I'm trying to get a handle on how to use simulavr to prototype a couple of projects and found that simulavr-1.0 built with very little trouble...

simulavr-1.1 has a test file (test_c/demo.c) that used to compile in v1.0, but apparently due to changes no longer compiles. (parameters swapped in outb/outp)

What is going on here? Is my configuration wrong or is the current "test_c/demo.c" in fact broken in 1.1.
(I'm using avr-gcc v3.1.1, not sure what else is relevant...)

Here's the diff:

diff simulavr-0.1.0/test_c/demo.c simulavr-0.1.1/test_c/demo.c
2c2
< * $Id: demo.c,v 1.4 2001/12/09 20:42:40 troth Exp $
---

> * $Id: demo.c,v 1.5 2002/09/05 17:18:44 troth Exp $

7,8c7,8
< #include <io.h>
< #include <progmem.h>
---

> #include <avr/io.h>
> #include <avr/pgmspace.h>

18c18
< outp( 0xff, DDRB ); /* enable port b for output */
---

> outb( DDRB, 0xff ); /* enable port b for output */

21c21
< outp( cnt, PORTB );
---

> outb( PORTB, cnt );



   

 

Back to the top


Powered by Savane 3.1-cleanup