Example: Logic for an
Assembler Language Program
unsigned int R0, R1, R2;
Register set for
processor
unsigned int M[64K];
Memory
R0 = M[0];
Move
R1 = 5;
Move
R2 = R2 + R1;
-- too complicated
R2 = R0;
Move
R2 += R1;
Add
If R2 != 0 Goto End
Branch
R2 = 0;
Move
M[0] = R2;
Move
End: HALT