Hi,

I am new to this site, but i am looking for help in using assembly language to read from the serial port.
To write the program i am using Raisionance (Ride) software, i have pretty basic knowledge of assembly language but am hoping to crack this anyway.

So far i have got:

MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#253
SETB TR1

SLOOP: JNB RI,$
MOV A,SBUF
CLR RI
CLR TI
MOV SBUF,A
JNB TI,$
SJMP SLOOP

The problem occurs when it gets to JNB TI,$, it all seems to stop.
I am using this to read data from one of those mulitmeters that plug into the serial port, it did come with its own software, but i am not using that.

Please Help! Thanks!