ShaiW / Tecs-3

The newest fork of the TECS software suite, used in the "NAND to Tetris" course
http://www1.idc.ac.il/tecs/
3 stars 1 forks source link

Opening an empty .asm file in Assembler #3

Open ghost opened 13 years ago

ghost commented 13 years ago

Running empty .asm file throws exception to terminal in the Assembler.

Pierce71588 commented 13 years ago

On load, checked to see if there are no lines in file. If not, it throws an exception that will display to the user "File is empty".

Pierce71588 commented 13 years ago

Reopened because the empty file check was causing issues. The CPU emulator triggers this error when a test script is used.