nanochess / pretty6502

A pretty printer for 6502, Z80, CP1610, TMS9900, and 8088 assembler code
BSD 2-Clause "Simplified" License
34 stars 4 forks source link

Auto align mode #4

Open willie68 opened 1 year ago

willie68 commented 1 year ago

Hi, First of all I want to thank you for this nice piece of code. Do you actively maintain this? So I have a few requests:

  1. Is it possible to create an automatic alignment mode? The starting column of the mnemonic can be 1+length of the largest label. Start column for comments 1+ (or a tab) length of largest mnemonic with operand.

  2. I am using RetroAssembler and some directives are not evaluated, such as msg1: .asciiz "Welcome to EWOZ 1.0."

  3. Directives beginning in the first column are not formatted (I think they are treated as labels...)

  4. New option to format values, like $0faa -> $0FAA

  5. New option to format labels, like @WAIT: jsr @WAIT -> @wait: jsr @wait

willie68 commented 1 year ago

Just one forgotten:

  1. option for formatting operant modifier like LDA #$20, X -> lda #$20, x (because RetroAssembler is throwing error, if index parameters are uppercase...)