| ??? 08/28/02 14:27 Read: times |
#28068 - RE: Clean code |
Philip,
If all you want to do is to send this "Menu" to your Hyper Terminal screen and won't need to send each string individually later on, you can change your table to:
CR EQU 0DH
LF EQU 0AH
MENU_TABLE:
DB CR,LF,'TEST PROGRAM - Serial control LED 3',CR,LF
DB CR,LF,'Hello Phil', CR,LF
DB CR,LF,'01 - Input LED 3 ontime', CR,LF
DB CR,LF,'02 - Input LED 3 offtime', CR,LF
DB CR,LF,'CTRL-C to Quit............', CR,LF
MENU_END:
DB 0FFH ;This is your "End_Of_Table"!
Now, your PUTSTRING can keep on transmitting characters until it reaches 0FFH. You already embed CR/LF inside each string, why do you need to call PUT_CRLF? |
| Topic | Author | Date |
| 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 |



