6502bench/SourceGen/AsmGen
Andy McFadden 4322a0c231 Add option to put labels on separate lines
We currently have two options for assembly code output, selected by
a checkbox in the application settings: always put labels on the same
lines as the instruction or data operand, or split the labels onto
their own line if they were wider than the label text field.

This change adds a third option, which puts labels on their own line
whenever possible.  Assemblers don't generally allow this for variable
assignment pseudo-ops like "foo = $1000", but it's accepted for most
other situations.  This is a cosmetic change to the output, and will
not affect the generated code.

The old true/false app setting will be disregarded.  "Split if too
long" will be used by default.

Added test 20280-label-placement to exercise the "split whenever
allowed" behavior.

The "export" function has a similar option that has not been updated
(for no particular reason other than laziness).

Also, simplified the app settings GetEnum / SetEnum calls, which
can infer the enumerated type from the arguments.  This should not
impact behavior.
2024-04-21 16:26:42 -07:00
..
WpfGui Rename menu item 2024-04-19 14:16:30 -07:00
AsmAcme.cs Add option to put labels on separate lines 2024-04-21 16:26:42 -07:00
AsmCc65.cs Add option to put labels on separate lines 2024-04-21 16:26:42 -07:00
AsmMerlin32.cs Add option to put labels on separate lines 2024-04-21 16:26:42 -07:00
AsmTass64.cs Add option to put labels on separate lines 2024-04-21 16:26:42 -07:00
AssemblerConfig.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
AssemblerInfo.cs First pass at ACME support 2019-08-03 20:54:07 -07:00
AssemblerVersion.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
GenCommon.cs Add option to put labels on separate lines 2024-04-21 16:26:42 -07:00
IAssembler.cs Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
IGenerator.cs ORG rework, part 6 2021-09-30 21:11:26 -07:00
LabelLocalizer.cs Don't use "not" as a label in ACME output 2021-10-18 13:04:10 -07:00