Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

6502bench .l1str opcode

52 views
Skip to first unread message

Andrew Roughan

unread,
Sep 11, 2021, 10:50:27 AM9/11/21
to
TW ROM does a JSR to print routine and then provides in-line vertical row,
length byte and then string in high ASCII.

6502bench has done a pretty good job determining strings in TW ROM, but
needed a little help for a couple of sequences. I think a $0d in the code
may have been interpreted as a CR and caused the interpretation to fail.
Anyway, I don’t mind that, but I’m having trouble cleaning it up.

Why does ‘Strings prefixed with 1 byte length’ display the string as comma
separated hex bytes (see screenshot)

https://www.flickr.com/photos/10917598@N06/51446203131

I would expect a display like .str
Why can’t I use ‘Display As’ to elect how it should be displayed?

(Despite reading the help, I don’t understand why the operand dialog shows
‘Display As…’ Hex for a .str operand - that doesn’t make sense to me)

(Needing to select all the data for the string had me scratching my head
for a while after the last enquiry resulted in using Tag/hints sparingly,
but I got there in the end)

Thanks,
Andrew





fadden

unread,
Sep 11, 2021, 11:43:43 AM9/11/21
to
On Saturday, September 11, 2021 at 7:50:27 AM UTC-7, Andrew Roughan wrote:
> Why does ‘Strings prefixed with 1 byte length’ display the string as comma
> separated hex bytes (see screenshot)

That's peculiar. I can't think of a reason offhand why it would do that. Can you send me the binary and the project file? (Either e-mail direct, or attach in a .ZIP to an issue on github.) Maybe throw in the "SourceGen-settings" file for good measure.

> (Despite reading the help, I don’t understand why the operand dialog shows
> ‘Display As…’ Hex for a .str operand - that doesn’t make sense to me)

The UI sets the "hex" and "low" radio buttons by default. Those sections are greyed out (disabled) when you don't have one of the "simple data" buttons selected, but Windows doesn't hide the button selection when you disable a radio button set. To make the selection dot disappear I'd need to add an event handler to clear them when something outside "simple data" was selected, recording their values elsewhere, and then re-select them if you went back to a "simple data" format. It felt more distracting to have the selection popping in and out than just leaving it in place but greyed out.

> (Needing to select all the data for the string had me scratching my head
> for a while after the last enquiry resulted in using Tag/hints sparingly,
> but I got there in the end)

Possibly relevant:
https://6502bench.com/sgtutorial/string-formatting.html
https://6502bench.com/sgtutorial/inline-data.html
https://6502bench.com/sgtutorial/extension-scripts.html

Andrew Roughan

unread,
Sep 12, 2021, 1:05:37 AM9/12/21
to
fadden <thef...@gmail.com> wrote:
> Can you send me the binary and the project file?
>

For those following along, I raised an issue
https://github.com/fadden/6502bench/issues/110
Andy kindly provided a script to work around this problem in the short
term. Thanks Andy!

0 new messages