1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-26 06:49:19 +00:00
6502bench/Asm65
Andy McFadden 2a41d70e04 Allow explicit widths in project/platform symbols, part 1
The ability to give explicit widths to local variables worked out
pretty well, so we're going to try adding the same thing to project
and platform symbols.

The first step is to allow widths to be specified in platform files,
and set with the project symbol editor.  The DefSymbol editor is
also used for local variables, so a bit of dancing is required.
For platform/project symbols the width is optional, and is totally
ignored for constants.  (For variables, constants are used for the
StackRel args, so the width is meaningful and required.)

We also now show the symbol's type (address or constant) and width
in the listing.  This gets really distracting when overused, so we
only show it when the width is explicitly set.  The default width
is 1, which most things will be, so users can make an aesthetic
choice there.  (The place where widths make very little sense is when
the symbol represents a code entry point, rather than a data item.)

The maximum width of a local variable is now 256, but it's not
allowed to overlap with other variables or run of the end of the
direct page.  The maximum width of a platform/project symbol is
65536, with bank-wrap behavior TBD.

The local variable table editor now refers to stack-relative
constants as such, rather than simply "constant", to make it clear
that it's not just defining an 8-bit constant.

Widths have been added to a handful of Apple II platform defs.
2019-10-01 16:00:08 -07:00
..
Properties Initial file commit 2018-09-28 10:05:11 -07:00
Address.cs Initial file commit 2018-09-28 10:05:11 -07:00
Asm65.csproj Initial file commit 2018-09-28 10:05:11 -07:00
CharEncoding.cs PETSCII does DCI 2019-08-20 17:55:12 -07:00
CpuDef.cs Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
Formatter.cs Local variables mostly work 2019-08-30 18:39:29 -07:00
Helper.cs Initial file commit 2018-09-28 10:05:11 -07:00
Label.cs Initial file commit 2018-09-28 10:05:11 -07:00
Number.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
OpDef.cs Fix code tracing bug 2019-09-17 14:38:16 -07:00
OpDescription.cs Show "assembling" when assembling 2018-10-30 16:41:56 -07:00
OpName.cs Rename undocumented 6502 opcodes to match Unintended Opcodes doc 2018-10-05 14:28:45 -07:00
StatusFlags.cs Initial file commit 2018-09-28 10:05:11 -07:00
StringOpFormatter.cs Define and use "delimiter sets" 2019-08-14 16:10:04 -07:00
TriState16.cs Initial file commit 2018-09-28 10:05:11 -07:00