Releases: informedcitizenry/6502.Net
Version 4.4.1
Fixed several defects
- Several instructions in the 65xx family as well as a few in the Z80 instruction set.
- A bug in how constants were evaluated in subsequent passes.
- Several undocumented/illegal Z80 opcodes should now disassemble properly.
- When a
.relocateinstruction before a.page/.endpageblock but the.endrelocateinstruction within it, a more helpful error will emit if a page boundary is crossed.
Version 4.3.2
Made small improvements to diagnostics for disassembler mode. Ignored options are now reported individually. In addition, some other options, such as --quiet, --Werror and --error now work as they would in assembler mode.
Version 4.3.1
Version 4.3.1
- Added support for escape codes of special Commodore keys in string and character literals, e.g.,
"{CLR}{HOME}"for Commodore-specific encodings. - Symbol names can include registers.
- Some error message improvements.
- Other minor bug fixes.
Version 4.2.2
Version 4.2.2
This release mostly focused on improved error messages.
Release 4.2
Changes
Support for the Sharp LR35902, the z80-flavored CPU powering the Nintendo Game Boy.
Release 4.1
Minor bugfix release
Release 4.0
Release 4.0
Features
- Enhanced the type system. Now all types have a minimum number of instance member methods, most notable
toString(). Previously standalone functions for arrays and strings are now implemented as methods on instances of those types. See the documentation on expressions for more details. - Added the tuple type, functionally equivalent to arrays except their members can be heterogenous types.
- String literals can have explicit encodings via the prefices:
u,Uandu8. - Support included for .Net style interpolated strings, e.g.
$"3+2={3+2}", including value formatting support. - The command-line option
--vice-labelsused with-Lcan output label listings as VICE format. - The
^^prefix operator extracts the high word of a numeric expression. - A lightweight diassembler is now available with the
--disassembleoption. The--disassembly-startand--dissembly-offsetoptions control disassembly. See the documentation for more details. - Pseudo-ops accept array and tuple expressions as operands
- The
rangefunction generates an integer array from given arguments.
Changes
- The command-line options
-Eand--ignore-colonshas been removed. - The
--createconfigoption is now a flag that will generate a config file called 'config.json' from the passed options. - The macro string literal substitution of the form
@"{macro_param}"has been removed. String interpolation is now supported as a replacement capable of full stringifying full expressions. - The following built-in functions have been removed (see above):
concat,filter,len,map,reduce, andsort. - The
pokefunction now returns the value of the poked value. - The preprocessing directives
.macro,.bincludeand.includeare now affected by the-Coption. - Parsing grammar simplification.
- Further improvements to error highlighting.
- The core assembler functionality has been packaged into its own project as a separated library called
Sixty502DotNet.Shared.
Fixes
- Fixed certain 6809
cwaiand certain indexed instructions. - The
--configoption had a defect that occasionally prevented the JSON schema from validating. - Certain values caused problems for the
cbmfltandcbmfltpfunctionality (both the pseudo-op directives and related functions)
Release 3.2
Release 3.2
Features
Functions
New functional support for array, with the following functions:
concat: Concatenate two arrays or stringsfilter: Filter array or string elements according to the specified predicatemap: Map array elements to new values according to the specified transform functionreduce: Reduce array elements to a new value according to the specified reducer functionsort: Sort the array or string
The function, or arrow, expression idiom has been added to the assembler syntax to support many of the above built-in functions. Function expressions work like callbacks and lambdas in other programming languages. See the wiki for usage and examples.
The .stringify directive
To generate string byte output from non-string values, ordinarily the format function would be used. A new directive .stringify allows the same in a compact format.
Release 3.1
Release 3.1
Changes
- Loosened equality/comparison rules for doubles.
- Minor refactoring of evaluation code.
Release 3.0
Release 3.0
Features
Directives
- The pseudo-op
.bankbytesextracts the bank byte values of expressions in the list - The pseudo-ops
.hibytesand.lobytesextract upper and lower byte values of expressions in the list - The pseudo-ops
.hiwordsand.lowordsextract upper and lower word values of expressions in the list - The directives
.ifconst,.ifnconstand their corresponding.elsedirectives allow for conditional assembly based on the constness of the expression - The scoping directive
.importallows to use symbols defined in a separate scope without referring to them by their fully qualified name.
Command-Line Options
- The command-line option
-Ecompletes source preprocessing and exits after outputting to the output stream - The command-line option
--no-highlightingsuppresses highlighting of causes of errors and warnings - The command-line option
--Wallenables all other warning options - The command-line option
--Wambiguous-zpwarns when an argument could be zero-page or absolute - The command-line option
--Wjump-bugwarns whenever the indirect JMP bug is encountered when in 6502 mode - The command-line option
--Wtext-in-non-text-pseudo-opswarns whenever string data is used in non-string pseudo-ops - The command-line option
--Wsimplify-call-returnwarns whenever a subroutine call and subsequent return can be simplified to a jump - The command-line option
--Wunreferenced-symbolsissues a warning for every symbol that is defined but never referenced
Data types and operations
- More robust type checking in expression evaluation
- Multiline strings
- Multidimensional and associative arrays (dictionaries)
- Range operations on array and string sequences
- String concatenation with the
+operator - The arithmetic right shift operator
>>>and its complement assignment>>>=shift an integer to the right while preserving its sign - The identity equality operators
===and!==test if two identifiers refer to the same object - Pre- and post-fix increment operations (
++and--) for numeric variables - Support for floating point hexadecimal exponential notation, and for floating point non-decimal literals generally
- A
\followed by a line feed/carriage escapes the newline character - The discard
_variable is available for operations where the result of an expression is not needed
Built-in symbols
- The
sizeoffunction returns the size (in bytes) of the argument. This is distinct from the existinglenfunction that merely reports the length of the string or array expression - The
intandfloatfunctions convert the number argument into an integer or float, respectively - The constant
MATH_TAUrepresentsτ, which is the count of radians in a turn (2*π) - The
typeoffunction returns the expression type in the argument
Changes
Labels
- Label setting in condition blocks will result in errors if they are set in multiple condition blocks, since symbols now are created in compile time rather than runtime, while conditions evaluate only at runtime. Refer to documentation for further details
- As a result of the change described above, the use of the
.labeldirective is unnecessary for.gotostatements to the label that occur past the label's definition
Data types
- Type enforcement and safety in expressions, e.g. mathematical operators only work for mathematical operands, compare for boolean, etc.)
- Some directives require constant expressions for their operands, but those expressions can be prefix or infix
- Custom user functions now support multiple return types, including complex types like arrays and dictionaries
- String characters can be accessed by index
Diagnostics
- Warnings and errors in included files will also report the inclusion source file and line where the
.includedirective has bene invoked - Similarly, warnings and errors in expanded macros will report the macro invocation source file and line
- The short name of
--errorsto output errors to the text file in the specified path is now-e, since-Eis repurposed for preprocessed output.
Parsing
- 6502.Net now leverages ANTLR, an open source parser generator. This change allows more advanced features and expression types to be incorporated into the application
Other changes
- Mnemonics and register names are now considered reserved words for the current target CPU only at runtime, and are available as symbols otherwise. See documentation for full details
- The
\in a string can only follow a valid escape character. - The
.letdirective now accepts multiple assignment expressions - Colons will no longer be recognized as statement delimiters when occurring in semi-colon comments; this makes the command-line option
--ignore-colonsdeprecated - The
.cpu,.end,.macro/.endmacroand.include/.bincludepreprocessor directives are always case insensitive, and are not affected by the-Coption - The argument
f/fullof the command-line option--createconfigwill enumerate the entire options, whether or not the were specified, instead of generating a sample - The
.break(or similar control directive) is now strictly optional in switch.casestatements, and fallthroughs will not be reported to the user.
Fixes
- Certain macro expansions stopped working correctly after a recent update. This has been fixed
- Fixed a bug where assembly status would report too few bytes if assembly reached the end of the 64KiB address space
- The
poke()function was not behaving according to its documentation for addresses outside the bounds of the generated code