Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/28/02 17:04
Read: times


 
#28095 - RE: Clean code
Another option to confuse you on outputting strings.
This uses a record length method, so that anything can be transmitted including null.

fin: mov dptr,#recfh ;transmit the old flow header
mov r1,#recfhe ;with a length of whatever
call putstrn
keep going:------

putstrn:
clr a
movc a,@a+dptr ;get the char
jnb ti,$ ;transmit it, if the buffers empty
mov sbuf,a
inc dptr ;point to the next char
djnz r1,putstrn ;loop thru all char
ret

; Old protocol header for flow
recfh: db 02h,0dh,0ah,'FLWEX',00h,20h,'='
recfhe equ $ - recfh
;
Lets tear this one up.
Have fun,


List of 20 messages in thread
TopicAuthorDate
Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code - to Donald            01/01/70 00:00      
RE: Clean code George, Donald            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Null terminator            01/01/70 00:00      
CRLF? LFCR?            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Clean code - to Philip            01/01/70 00:00      
RE: Null terminator            01/01/70 00:00      
Hyperterminal alternative            01/01/70 00:00      
RE: Clean code            01/01/70 00:00      
RE: Hyperterminal alternative            01/01/70 00:00      
RE: Hyperterminal alternative            01/01/70 00:00      

Back to Subject List