| 
      
      
      From: <r.g...@vi...> - 2007-09-10 11:50:10
      
     | 
| Hi to all!
After changing user initialisation routine, installing quartz and without any answer 
from my mega8, I try to check source in avr studio simulator and found out that 
after 1507 clock ticks avr simulator execute wrong opcode and reset.
After tracing in which routine I came to this:
; ( i*x -- j*x )
; R( -- )
; runtime of defer
;VE_DOEDEFER:
;    .db $0a, "(defer)", 0
;    .dw VE_HEAD
;    .set VE_HEAD = VE_DOEDEFER
XT_DODEFER:
    .dw PFA_DODEFER
PFA_DODEFER:
    call_ DO_DODOES
    .dw XT_DUP
    .dw XT_1MINUS
    .dw XT_SWAP
    .dw XT_1PLUS
    .dw XT_IFETCH
    .dw XT_EXECUTE 
;    .dw XT_EXECUTE
    .dw XT_EXIT
On second XT_execute aperas executing wrong opcode, so after commenting 
out  this line in simulator works ok.
This evening I will try in real Mega....
Is there falut or not?
> 
> Od: <r.g...@vi...>
> Datum: 2007/09/05 sri PM 02:23:05 GMT+01:00
> Za: <amf...@li...>
> Naslov: [Amforth-devel] mega8 installation problem
> 
> Dear all, 
> I will need a help from you as I have a problem with installing amforth2.3 on 
> atmega8. 
> Assembling with avr studio 4 is performed without any error. I put cpu 
> frequency t 
> o 1Mhz (internal rc oscilator) , baud rate at 9600. After programming with hex 
> and 
> eeprom files, nothing hapened, on hyper terminal is nothing writen neider 
> typing on 
> kbd helped.
> I'm using internal oscilator seted to 1Mhz, with rs232 attached to pin 2 and 3 
> of 
> atmega8. If I load atmega8 with any program (writen in C or asm) for serial 
> communication (simly sending and receiving characters from hyperterminal), 
there 
> is print out on hyperterminal so rs232 chip is properly 
> connected to avr.
> Does anyone have any ideo what is wrong?
> I was very happy when found amforth and now it does not want to work...... :-(
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Amforth-devel mailing list
> Amf...@li...
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 
> 
 |