On Wed Jul 27 11:22 , Johannes Deutsch <[email protected]> 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
[email protected]
"War is only a hobby."
---- Msg sent via CableONE.net MyMail - http://www.cableone.net
_______________________________________________
Simulavr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to