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

 
 
Latest News
Please do not use the version 1.0.0 anymore! posted by zfrdh, Wed Feb 10 16:29:36 2016 - 0 replies
simulavr release 1.0.0 posted by tomk, Tue Feb 14 18:31:49 2012 - 0 replies
Simulavr - Updates posted by onnokort, Sat Apr 24 10:22:52 2010 - 0 replies
simulavr 0.1.2.2 release. posted by rivetwa, Thu Feb 17 01:53:11 2005 - 0 replies
simulavrxx-0.8.005 uploaded posted by rivetwa, Wed Feb 9 03:43:00 2005 - 0 replies
[Submit News]
[21 news in archive]

simulavr-0.1.1 released

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

Comments:

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

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