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