37 Commits

Author SHA1 Message Date
df2a220473 WiP formatter. 2022-12-23 20:24:50 +01:00
e0bd6981e3 Full support for MC68010 ISA ('movec', 'moves' and new special registers 'SFC' and 'DFC'). 2021-10-11 11:32:13 +02:00
031d5ff4ab Missing files and fix for optional values in Memory Indirect mode. 2021-10-08 18:04:15 +02:00
a92630e5c7 Added Address Register Indirect with Base Displacement addressing mode. 2021-10-08 15:09:41 +02:00
3f1ef0e55a Refactored BNF for base and outer displacement to avoid ambiguity for these expressions. 2021-10-08 11:22:53 +02:00
722d4437ec Added missing support for size qualifiers for base and outer displacement. 2021-10-08 11:07:16 +02:00
f1110ac3c9 Added 68020 Memory Indirect and Program Counter Memory Indirect addressing modes. 2021-10-08 08:38:04 +02:00
7462c5b02d Added support for SCALE in index addressing modes. 2021-10-08 08:37:29 +02:00
a03de6c394 Added documentation provider info for global labels. Shows directives and comments above.
Fixed BNF for labels with preprocessor statements.
Bumped versions.
2021-09-25 15:19:05 +02:00
593719043e New: Code completion for local label definitions, suggesting undefined labels already referenced. 2021-08-08 13:40:01 +02:00
e0cdfef42b New: Files in 'include' directives can be referenced and renamed/refactored. 2021-08-06 20:03:47 +02:00
8d7977927f Added M68kIncludeFileProvider, but dunno what it's actually for. 2021-08-06 19:12:54 +02:00
94001c8b87 Added explicit IndexRegister-PSI-Element. Major rework to support new DocumentationProvider on registers.
When asking for documentation on registers, a code flow analysis is done.
2021-08-02 20:54:30 +02:00
7744b589d4 Added support for movem with register list crossing from data to address (e.g. d0-a6) as found in p61a source. 2021-08-02 09:43:42 +02:00
19e3b519db Bugfix: Macro definitions with colons and without space supported (as found in P61a source). 2021-08-02 09:41:51 +02:00
09a4e62c7c Bugfix: Interpretation of register lists was wrong in BNF.
Massively extended M68kIsa with description on register modifications (not yet used in production code).
Changed BNF for additional AddressingMode interfaces.
2021-08-01 10:08:01 +02:00
3aeb415974 Massively reworked and extended ISA-Description class.
Added inspection to validate the correctness of a MC68000 instruction regarding operation size and address modes.
2021-07-31 13:56:07 +02:00
25450a9bf8 Macro definitions are now word and indexed, macro calls reference to definition.
Macro definition refactoring and find usages support.
Structural View also shows macro definitions.
Missing REPT and ENDR assembler directives added.
Changed or added some icons at various places.
Reference search for global labels and symbols now uses stub index.
2021-07-27 16:34:49 +02:00
6e683eb6a0 Started working on macro support. Macro-Definition are now plain, unparsed lines. Added Syntax-Highlighter options. 2021-07-27 12:42:26 +02:00
ad3b207362 Added missing test for comparing expressions. Deleted unused generated file for Label-Implementation, noticed problem in inheritance hierarchy and removed base interface M68kLabel, too. 2021-07-26 14:13:12 +02:00
82feb8c43c Fixed syntax error for files ending on non-empty line 2021-07-26 10:59:40 +02:00
89ecaeb613 Added stubbing and stub index for symbol definitions. 2021-07-25 20:13:13 +02:00
83d2ca3304 Added first stubbing and stub index for global labels. 2021-07-25 19:53:06 +02:00
9a37b9c569 Added separate syntax highlighting for stack pointer vs. normal address registers. 2021-07-20 11:02:11 +02:00
66fa728a45 Added local label reference (not final yet), but referencing kind of works. 2021-07-19 12:08:47 +02:00
25c755d729 Reworked BNF for symbol references and program counter. Enhanced syntax highlighting. Continued work on referencing (not yet working). Fixed renaming of Labels and Symbols. Added M68kRenameInputValidator for correct renaming of symbols and labels (allow local labels with dot or dollar). Added UsagesProvider (not sure if working). Added PairedBraceMatcher. 2021-07-18 15:05:59 +02:00
63c38f68c3 Reworked label handling: Colons are no longer part of the label definition itself. Added PsiNamedElement for Labels. 2021-07-17 10:18:36 +02:00
d53a1fbac8 Nosfe also likes to place assignments with colons. Fixed assignment symbol detection (again :-/). 2021-07-16 14:13:29 +02:00
b7f655745b Enhanced expression parser for PC relative symbol and modulo handling and bitwise or. 2021-07-16 10:03:33 +02:00
e33470ea1a Split up opsizes for better syntax highlighting. Fixed bug in macro-call lexer. 2021-07-15 23:03:31 +02:00
beea9b2763 Added macro call. Extended syntax highlighting. 2021-07-15 22:15:22 +02:00
aa14984a8e Made AsmOperands private. Added support for generic assembler directives. Bugfixes. Added more Tests. 2021-07-15 21:00:12 +02:00
f482948abe Added first version of Syntax Highlighting. Commented out some tokens. 2021-07-15 16:40:17 +02:00
03c11ecef9 Fixed addressing modes. Added missing generated class, removed unused one. 2021-07-15 12:45:57 +02:00
2fe70deee2 Added first tests, improved BNF and Lexer. Fixed extra space in assignment symbol. 2021-07-15 12:04:05 +02:00
eb4552fa83 Progress on Lexer and BNF. 2021-07-15 10:44:03 +02:00
9047c53a0e Intermediate commit for BNF and generated Parser and Lexer. 2021-07-14 13:07:54 +02:00