simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] simple assembler program behaves incorrectly


From: address@hidden
Subject: Re: [Simulavr-devel] simple assembler program behaves incorrectly
Date: Wed, 27 Jul 2011 14:39:55 -0700

On Wed Jul 27 11:22 , Johannes Deutsch <address@hidden> sent:

>Here's the code of the assembler file:
>
>
>#include 
>
>#define test 16
>
>.section .data
>.equ k,255
>output:
>.asciz "Hallo Welt"
>
>.section .bss
>.comm buffer, 20
>
>.section .text
>.global main
>
>delay:
>ld test, X
>nop
>ret
>
>main:
>ldi XL, 0x60
>ldi XH, 0x00
>main_loop:
>rcall delay
>rjmp main_loop
>
>
>After i loaded the binary file and connected gdb with simulavr
>
>(gdb) x/20xb &output
>
>yields an empty memory within the defined range.
>
>So the question i pose is, whether the error (that the string is not
>located in the SRAM) is produced by simulavr or avr-gcc?

My suspicion is that for some reason you do not have the C runtime.
How, if at all, did you link?

--
Michael Hennebry
address@hidden
"War is only a hobby."
---- Msg sent via CableONE.net MyMail - http://www.cableone.net


reply via email to

[Prev in Thread] Current Thread [Next in Thread]