HW3_SOL

HW3_SOL - ME576 1. HW#3 Solution 2011 Solution LOAD LOOP...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
ME576 HW#3 Solution 2011 1. Solution LOAD #0 Set RESULT to 0 LOOP STORE RESULT INPUT 3 Input next ASCII character SUBTRACT #3A 16 JUMP IF POSITIVE DONE Between 30 16 and 39 16 ? ADD #0A 16 JUMP IF NEGATIVE DONE STORE DIGIT DIGIG <-ASCII - 30 16 LOAD RESULT MULTIPLY #A 16 RESULT <-RESULT*10+DIGIT ADD DIGIT STORE RESULT JUMP LOOP DONE LOAD RESULT Output RESULT OUTPUT 7
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. Bollinger 9.8 a) MOTOR=(MOTOR+START)•STOP•CLAMP1•CLAMP2 b) LOAD #0 LOOP STORE MOTOR OUTPUT 0 INPUT 1 OR MOTOR STORE MOTOR INPUT 2 COMPLEMENT AND MOTOR STORE MOTOR INPUT 3 AND MOTOR STORE MOTOR INPUT 4 AND MOTOR JUMP LOOP
Background image of page 2
c) LOAD, AND, OR 5 μ 4 μ 10 -6 =20 μ sec STORE 4 μ 5 μ 10 -6 =20 μ sec INPUT 4 μ 4 μ 10 -6 =16 μ sec OUTPUT 1 μ 5 μ 10 -6 =5 μ sec JUMP
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

HW3_SOL - ME576 1. HW#3 Solution 2011 Solution LOAD LOOP...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online