Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *-----------------------------------------------------------
- * Title : Zadatak 2
- * Written by : Andrej Lovrić
- * Date : 20.3.2019
- * Description:
- *-----------------------------------------------------------
- ORG $1000
- START:
- LEA UPIT1, A1
- MOVE.B #19, D1
- MOVE.B #1, D0
- TRAP #15
- MOVE.B #4, D0
- TRAP #15
- MOVE.B D1, D7
- LEA UPIT2, A1
- MOVE.B #20, D1
- MOVE.B #1, D0
- TRAP #15
- MOVE.B #4, D0
- TRAP #15
- MOVE.B D1, D6
- LEA RJ1, A1
- MOVE.B #7, D1
- MOVE.B #1, D0
- TRAP #15
- MOVE.B D6, D5
- ADDX D7, D6
- MOVE.B D6, D1
- MOVE.B #3, D0
- TRAP #15
- LEA NOVIRED, A1
- MOVE.B #0, D1
- MOVE.B #0, D0
- TRAP #15
- LEA RJ2, A1
- MOVE.B #9, D1
- MOVE.B #1, D0
- TRAP #15
- MULU D7, D5
- MOVE.B D5, D1
- MOVE.B #3, D0
- TRAP #15
- SIMHALT
- UPIT1 DC.B 'Unesite prvi broj: '
- UPIT2 DC.B 'Unesite drugi broj: '
- RJ1 DC.B 'Zbroj: '
- RJ2 DC.B 'Umnozak: '
- NOVIRED DC.B ''
- END START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement