Handle unprintable characters more gracefully

* Skip UTF-8 byte order mark at beginning of file
* Error on other unexpected unprintable characters
This commit is contained in:
dbrotz
2019-06-29 12:50:41 -07:00
parent 1decf5d0d4
commit 484d15dbb2
3 changed files with 32 additions and 12 deletions

View File

@@ -1,3 +1,2 @@
ERROR: garbage_char.asm(1):
syntax error
error: Assembly aborted (1 errors)!
Found garbage character: 0xFF

View File

@@ -1,3 +1,2 @@
ERROR: -(1):
syntax error
error: Assembly aborted (1 errors)!
Found garbage character: 0xFF