ysh443 wrote
(SHL)
@100
M=M-1 <--- line 13
D=D+D
R0=R0&D
In Line 13 Expression expected
The actual error is on the next line, D=D+D is not a legal instruction.
Look at figure 4.3; those are the only computations the ALU can perform. Hence, the mnemonics in the left and right columns are the only legal computations allowed on the right side of the "=".
To compute D=D+D you need to move D into A and then compute D=D+A. To compute R0=R0&D, set A to R0's address then compute M=D&M.
--Mark