Administrator
|
The ROM can hold 32768 instructions and each instruction requires either 17 or 18 bytes in the .hack file (16 bits for the pattern of 1s and 0s and then either one (*nix) or two (DOS/Windows) bytes for the end-of-line character, depending on operating system.
Thus, on a Windows machine, anything under about 576 KB (~544 KB on *nix) should fit into the ROM.
Open the .hack file in an editor that will tell you how many lines are in it and see if it exceeds 32768.
It might also be a good idea to modify your assembler so that it reports the number of instructions in the resulting .hack file.
Could you elaborate on exactly what the error is that you are getting and what you are doing when you get it?
|