-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-line macro not fully transmitting #5
Comments
I'll see if I can reproduce this problem. What kind of D-Bug12 debugger are you using? |
This is using the onboard monitor firmware D-Bug12 4.0.0.b32 for the Dragon12-Light by EVBplus.com (more info: http://evbplus.com/dragon12_light_9s12_files/dragon12_light_rev_a.html), running in EVB mode. |
I think I've figured out what the issue is: after D-Bug12 receives the first command from HSW12, only up to one additional character is buffered before returning to the prompt (I have not studied the D-Bug12 code or the SCI system enough to know entirely why). Depending on the amount of time until D-Bug12 returns (e.g. how much output there is), the rest of the macro is subject to being discarded. |
I've since learned about software flow control a.k.a. XON/OFF, and stty's * I verified this on D-Bug12 v4.0.0b32 using a sniffer tool CLRA
LDAB #$11 ;XON
LDX putchar
JSR 0,X
SWI I then made sure that with |
I have also noticed that some multiple-line macros don't run correctly (at least on a Mac using an FTDI USB serial device): I'm not sure if I've described the issue comprehensively, e.g. when mixed with Macro Commands, but it seems that for the second Regular Output Text line only the first character is output, and the rest of the macro is not output. For example, the macro
is output to the terminal as
The text was updated successfully, but these errors were encountered: