austinch20

Untitled

Jan 14th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. 1-save input A (8 bit input) -> Reg1
  2. 2-save input B (8 bit input) -> Reg2
  3. 3-if lsb of Reg 2 == 1; ADD Reg1 Reg3 -> Reg3, else; goto line 5
  4. 4-Lshift Reg1->Reg1
  5. 5-Rshift Reg2->Reg2
  6. 6-if Reg2>Reg0 (0 register); goto line3, else; continue
  7. 7-output reg3 to BCD display
  8.  
  9. NOTE: Reg0 will always = 0
Advertisement
Add Comment
Please, Sign In to add comment