santiagojbt - 2006-11-20

I am using this very simple program:

-------------------------------------------------------------------------------
sam@hobbiton:~/programacion8051$ cat programa1.a51

;
; Ejemplo de Programa 1
;

EJEMPLO = 10

.area CODIGO (ABS)
mov a, #EJEMPLO
salto: inc a
sjmp salto
-------------------------------------------------------------------------------

Then, in a terminal, I run:

sam@hobbiton:~/programacion8051$ s51 -Z 5555 programa1.ihx

In another terminal, I run:

sam@hobbiton:~/programacion8051$ telnet localhost 5555
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
uCsim 0.5.4, Copyright (C) 1997 Daniel Drotos, Talker Bt.
uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
1> go
Simulation started, PC=0x000000
Connection closed by foreign host.

¡The connection closed!

And then, in the first terminal:

sam@hobbiton:~/programacion8051$ s51 -Z 5555 programa1.ihx
Fallo de segmentación

What happened? :-(

I generated programa1.ihx with asx8051, aslink and the source code programa1.a51.

I am using Ubuntu 6.06.

Thanks.