# day7 - 55 Subtraction Compute V U, if V U; &amp;amp;amp;,...

This preview shows pages 1–7. Sign up to view the full content.

10/4/11 Dec 2, © UCF (Charles E. 11 Useful Macros # 1 GOTO A IF Z = 0 GOTO A IF V = 0 GOTO A IF V = 0 GOTO E GOTO A [E]

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

View Full Document
10/4/11 Dec 2, © UCF (Charles E. 22 Useful Macros # 2 V ” [A] IF V = 0 GOTO E V ” V-1 GOTO A [E] V ” k V ” V+1
10/4/11 Dec 2, © UCF (Charles E. 33 Useful Macros # 3 [A] IF U = 0 GOTO B GOTO A [C] IF Z = 0 GOTO E GOTO C

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

View Full Document
10/4/11 Dec 2, © UCF (Charles E. 44 Addition by S Program Compute V + U (args are X1, X2) Z1 1 X1 Z2 1 X2 [A] IF Z2 = 0 GOTO B Z1 1 Z1+1 Z2 1 Z2-1 GOTO A [B] Y 1 Z1 Z1 1 0
10/4/11 Dec 2, © UCF (Charles E.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 55 Subtraction Compute V U, if V U; &amp;, otherwise (args are X1, X2) Z1 1 X1 Z2 1 X2 [A]IF Z2 = 0 GOTO B IF Z1 = 0 GOTO A Z1 1 Z1-1 Z2 1 Z2-1 GOTO A 10/4/11 Dec 2, UCF (Charles E. 66 Limited Subtraction Compute V U, if V U; 0, otherwise (args are X1, X2) Z1 &amp; X1 Z2 &amp; X2 [A]IF Z1 = 0 GOTO B IF Z2 = 0 GOTO C Z1 Z1-1 Z2 Z2-1 GOTO A [B]Z2 &amp; 0 10/4/11 Dec 2, UCF (Charles E. 77 Alternative Version Compute V U, if V U; 0, otherwise (args are X1, X2) Z1 &amp; X1 Z2 &amp; X2 [A]IF Z2 = 0 GOTO C Z1 Z1-1 Z2 Z2-1 GOTO A [C]Y Z1...
View Full Document

## day7 - 55 Subtraction Compute V U, if V U; &amp;amp;amp;,...

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

View Full Document
Ask a homework question - tutors are online