MEGA65 / mega65-tools

Tools and Utilities for the MEGA65 Retro Computers
GNU General Public License v3.0
28 stars 31 forks source link

Serial routines for m65dbg #134

Closed dansanderson closed 1 year ago

dansanderson commented 1 year ago

This implements new serial routines for m65dbg, replicating the originals using m65common calls.

serialRead() is all new with a timeout-wait for the dot prompt. The previous version waited a fixed amount of time and either got the prompt or it didn't. I was having difficulty with this, and simply increasing the pre-wait slowed down multi-command operations substantially.

Contributes to issue #131.

dansanderson commented 1 year ago

This is forked from the previous PR (https://github.com/MEGA65/mega65-tools/pull/133), so once the previous PR is merged this will simplify to just the latest change.