Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mw@shell:~$ cat test.S
- _start:
- xor r0, r0, r0
- mvhi r1, hi(0x40000000)
- ori r1, r1, lo(0x40000000)
- mvhi r2, hi(0x40000000)
- ori r2, r2, lo(0x40000000)
- mvi r3, 4
- wcsr TLBVADDR, r1
- wcsr TLBPADDR, r2
- wcsr TLBCTRL, r3
- mvi r8, 16
- wcsr PSW, r8
- mvhi r1, hi(0x50000000)
- ori r1, r1, lo(0x50000000)
- mvhi r2, hi(0x40000000)
- ori r2, r2, lo(0x40000000)
- mvi r3, 4
- wcsr TLBVADDR, r1
- wcsr TLBPADDR, r2
- wcsr TLBCTRL, r3
- mvhi r5, hi(.loop)
- orhi r5, r5, 0x1000
- ori r5, r5, lo(.loop)
- b r5
- .loop:
- bi .loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement