I made some more changes to the Edit Mode file and am pretty happy with how it works. All the 6502 opcodes1 mnemonics highlight as keyword1, DASM commands as keyword2 and the constants for all the Atari specific variabels as keyword 3. Numbers correctly highlight for hex using $ format and binary with %. I included octal rules, though I don't know if DASM supports octal or not. Numbers starting with 0 are traditionally considered octal so 012 = $0A = 10.This will probably be it on jEdit for a while so I can get back to documenting Warlords.
1 opcodes are the numeric values of the instructions that the assembler converts the mnemonics to. A single mnemonic can represent multiple opcodes, which opcode can be derived by the addressing mode. For the Immediate Mode instruction LDA #50, the mnemonic LDA is converted to $A9. For the Absolute,X Mode instruction LDA $4000,X, the mnemonic is converted to $BD.
<PREVIOUS> <INDEX> <NEXT>