SERIN: SKIP without WAIT?
xanatos
Posts: 1,120
Normally I'd just breadboard this and test but I'm not able to do that at the moment - quick question - Can SKIP be used without WAIT in a SERIN command?
Right now I have this:
SERIN Ctx, T9600, [WAIT("R"), SKIP 3, STR serStr\10]
Will this work:
SERIN Ctx, T9600, [SKIP 24, STR serStr\10]
This is of course assuming the datastring being SERIN'd is a guaranteed fixed-length with data positions being absolutely fixed within the stream...
The editor doesn't reject the format when I go to look at the memory map, so I'm guessing it should work. I've just never seen a skip without a wait :-)
Thanks!
Dave
Right now I have this:
SERIN Ctx, T9600, [WAIT("R"), SKIP 3, STR serStr\10]
Will this work:
SERIN Ctx, T9600, [SKIP 24, STR serStr\10]
This is of course assuming the datastring being SERIN'd is a guaranteed fixed-length with data positions being absolutely fixed within the stream...
The editor doesn't reject the format when I go to look at the memory map, so I'm guessing it should work. I've just never seen a skip without a wait :-)
Thanks!
Dave
Comments
[ May I ask why you're asking? ]
SKIP ignores the number of characters specified ... without looking at them ... with complete disregard for what they are
WAIT ignores all incoming characters that do not match the specified character(s). Once a match occurs, the WAIT terminates with the next character processed normally
Thanks!
D