skilldrick/6502js — pull request #3 by TC01 (2014-02-22 16:55:53+00:00)
Title: Fix #2 (failure to detect undefined labels)

I already posted about this on the bug report: since no one has responded there I figured I'd open a pull request.

This should prevent undefined labels from being silently ignored and replaced with a jump to 0x1234. All it does is make the assembler return an error when an undefined label is encountered instead of pretending everything was successful.

If I had to guess, I'd say 0x1234 is being pushed so it can be detected later from elsewhere. However, the code to actually do this doesn't seem to ever have been implemented, so this is better than nothing.