URL
https://opencores.org/ocsvn/hpc-16/hpc-16/trunk
Subversion Repositories hpc-16
[/] [hpc-16/] [trunk/] [impl0/] [asm/] [add2.txt] - Rev 15
Compare with Previous | Blame | View Log
# pc_preset := 0h
# sp_preset := 1eh
.code
.org 0000 |adr |
li r0, adr(opr1) |0000|01001_001, 0000_0000, 1111_1111, 0000_0000
li r6, adr(opr2) |0004|01001_001, 0110_0000, 1111_1111, 0000_0010
ld r2, [r0] |0008|00001_000, 0010_0000
ld r3, [r6] |000A|00001_000, 0011_0110
add r2, r3 |000C|00110_001, 0010_0011
li r8, adr(result)|000E|01001_001, 1000_0000, 1111_1111, 0000_0100
st r2, [r8] |0012|00010_000, 0010_1000,
hlt |0014|11111_000, 0000_0000
.data
opr1
7fff |ff00|0111_1111, 1111_1111
opr2
1 |ff02|0000_0000, 0000_0001
result
???? |ff04|