> I am facing one problem with SDCC. I am displaying one string through
> 8051 serial port. I can get individual charaters through "hypr-terminal
> application, but when i amusing tx_str function as shown in the attached
> code i can see only first charater on the display. I am using SDCC
> 2.2.2 version.
> What correction i will have to do to get the complete string through the
> serial port?
2nd though, 2nd try:
I've seen that you use --code-loc 0x8000. So I guess you're using a monitor,
and you think, you don't have to initialize the serial port. Right? And now
let's assume, the monitor uses interrupt-driven transmission (sometimes this
mailing list is like a quiz show). Then, after sending the first character,
the interrupt service routine clears TI, and your code
Solution: clear ES and/or EA before sending the first byte. And don't forget
to restore ES, EA, TI and RI before returning to the monitor.