TDT4160/o456/o4.md

21 lines
337 B
Markdown
Raw Permalink Normal View History

2022-08-27 16:26:13 +02:00
```
ldi %r2, 1
00000 00010 0000000000000000000001
ldi %r1, 1
00000 00001 0000000000000000000001
mul %r2, %r2, %r0
00010 00010 00010 00000 XXXXXXXXXXXX
sub %r0, %r0, %r1
00101 00000 00000 00001 XXXXXXXXXXXX
cmp %r3, %r0, %r1
00011 00011 00000 00001 XXXXXXXXXXXX
jgt %r3, -16
00100 00011 1111111111111111110000
```