freem / asm6f

A fork of loopy's ASM6, a 6502 assembler.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.nl generation omits last constant symbol

freem opened this issue · comments

When telling the assembler to output an .nl file, the last constant will not appear in the file. Labels seem to work alright, though.

Tested with commit hash 3b68946

Example source (test.asm):

.enum $0000
	item  .db 0
.ende

.org $8000
	lda item
	sta $00
here:
	jmp here

Command line used: asm6f -n test.asm test.nes

Expected outcome: test.nes.ram.nl will have an entry for the "item" variable (specifically: $0000#item#)

Actual outcome: test.nes.ram.nl is empty.

How to confirm: Add another variable after item, such as item2. The line for item will now appear in test.nes.ram.nl

Regression notes: I can't recall if this has always been an issue; I've always had more than one RAM variable defined and never thought to check closely.

This line currently has a < where I believe a <= should go. Sorry, I fixed this for lua exports but totally forgot to for regular ones.

Fixed in commit af3f54d.