From dc2d7feff7f6cf1466e7e221da88ec4e4da7a215 Mon Sep 17 00:00:00 2001 From: g012 Date: Thu, 21 Sep 2017 00:56:36 +0200 Subject: [PATCH] Changed _ to . in symbol file for local labels. Removed DASM style comments in symbol file. --- 6502.lua | 13 ++++++++----- asm.l65 | 5 +++-- asm.lua | 5 +++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/6502.lua b/6502.lua index a40a879..2da8c2a 100644 --- a/6502.lua +++ b/6502.lua @@ -209,18 +209,21 @@ M.writesym = function(filename) local f = assert(io.open(filename, "wb"), "failed to open " .. filename .. " for writing") table.sort(symbols) local ins,fmt,rep = table.insert,string.format,string.rep - local s ={'--- Symbol List'} - local sym_rev = {} + local s,sym_rev = {},{} for k,v in pairs(symbols) do if type(v) == 'number' then ins(sym_rev,k) end end table.sort(sym_rev, function(a,b) local x,y=symbols[a],symbols[b] return x==y and a