![]() |
.. (לתיקייה המכילה) | |
Why does the sample input given in the HW produce errors? | |
Because it was not properly formatted. Look at the updated HW file (On the site from May 5th), or at the sample file ex2_test1.txt for syntactically correct sample input. |
Is an empty row or column legal? If it is, how is it represented? | |
Yes, there can be empty rows or columns, that is rows or columns that are not supposed to contain any black squares. Such a row (or column) is represented by a single 0 in the appropriate Nums array. Clarification: The single 0 above is the row-end (delimiter) 0, there is no extra 0 added because the row is empty. For instance, if X represents a black square, and O represents a white square, then for the board: X X X O O O X O X A correct Row_Nums array would look like this: 3, 0, 0, 1, 1, 0 |
Does X_Size multiplied by Y_Size fit into a single word, without overflowing? | |
Yes, of course it does. If it didn't, the Board array (which has X_Size * Y_Size elements) could not fit into memory. |
Is modifying the data in the input arrays (specifically Board) allowed? | |
It's perfectly possible to solve the question without doing that. However, if you think that'll simplify your solution, feel free to modify the content of the arrays any way you wish. |
What happens if the board length is odd? | |
In that case, the Output label will be at an odd address. (No .even directive will be inserted between them). Note that if Output is indeed odd, and you run "e Output" in the simulator, it will display the word Output is contained in. For instance, if Output is at 5003, then "e Output" will display the contents of the word at address 5002. |
What are the requirements for external documentation? | |
That question is answered in the General FAQ. |