C# implementation, hopefully straightforward enough to port to other langs: https://github.com/BigEvilCorporation/ASM68KSymbolDump
My SNASM68K.EXE version is also here (C++): https://github.com/BigEvilCorporation/SN68KCOFFDUMP
A plea to emulator developers - please implement source level debugging for budding new homebrewers, it's one of the major roadblocks for learners
