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
debugger: search range off by one? #1127
Comments
The notation you are using is There is alternate notation (using comma instead of colon) which is: EDIT: the above notation is wrong (I got it backwards)... see below! But when I tried this there is an off-by-one bug. |
The notation you are using is `s <address-start>:<length> <hex>`, so for the
specific example you gave, with a length of 1fff it will only search
[0...1ffe].
':' appears to be interpreted as an end address, unless there's a parsing issue.
4000:A9 41 85 01
S 4000:4003 1
returns no found, but.
S 4000:4004 1
returns 4003.
So, I should stop using ':' as the end address?
There is alternate notation (using comma instead of colon) which is: `s
<address-start>,<address-end> <hex>`, which should search [0...1fff].
Okay, I will switch to that.
But when I tried this _there is_ an off-by-one bug.
So let me get this fixed, and then supply you with an update.
Thanks.
|
Repro: 4000:A9 41 85 01 ; Quick tests for "found" case s 4000,4 A9 41 s 4000,4 A9 41 85 s 4000,4 A9 41 85 1 ; Quick tests for "not found" case ; Other tests: s ffff:ffff c3 NB. |
@peterferrie - here's a point-release which fixes #1126 and this one: Can you give it a go, and confirm that it fixes things for you? (I'll do a proper release soon) |
Yes, working for me. Thanks!
|
Closing as confirmed as fixed. |
Officially fixed in this new AppleWin 1.30.12.0. |
@tomcw Thanks for fixing this off-by-one bug. @peterferrie I've been using the |
example, s 0:1fff dd
will search only 0..1ffe. I expected it to look at 1fff, too.
If it's intentional, then I'll have to be more careful.
The text was updated successfully, but these errors were encountered: