;PROGRAM 1 ------------ MOV A, 2 ; move the number 2 to register A ADD A, 3 ; add 3 to whatever is in A, store result in A HLT ; stop! ;PROGRAM 2 ------------ MOV A, 0 ; move the number 0 to register A .loop: ADD A, 1 ; increment whatever is in A by 1 JMP .loop ; jump back to loop ;PROGRAM 3 ------------ MOV B, 7 ; move the number 7 to register B MOV [100], B ; move whatever is at B to memory address 100 ;PROGRAM 4 ------------ MOV A, 1 ; move the number 1 to register A .loop: MUL 2 ; multiply whatever is in A by 2 JMP .loop ; jump back to loop