SIM3 Practice Quiz Each of the following SIM3 programs begins execution at address 0 and will print one or more numbers before it halts. What 4-digit numbers are printed? 1. printed value = ________ 000 8000 start: in 001 8700 shr 002 8600 shl 003 8100 out 004 0000 halt 000 .end start 9999 2. printed value = ________ 000 8000 start: in 001 8300 loop: inc 002 8500 neg 003 8100 out 005 0000 halt 000 .end start 0 3. printed value = ________ 000 8000 start: in 001 2008 st b 002 1007 ld a 003 4008 sub b 004 8300 inc 005 8100 out 006 0000 halt 007 9999 a: .word 9999 008 0000 b: .word 0 000 .end start 10 4. Hand assemble the following program to create a machine language program that begins execution at address 000. _ _ _ _ _ _ _ start: in _ _ _ _ _ _ _ st b _ _ _ _ _ _ _ ld a _ _ _ _ _ _ _ sub b _ _ _ _ _ _ _ inc _ _ _ _ _ _ _ out _ _ _ _ _ _ _ halt _ _ _ _ _ _ _ a: .word 9999 _ _ _ _ _ _ _ b: .word 0 _ _ _ .end start