Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 16th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. mw@shell:~$ cat test.S
  2. _start:
  3.         xor r0, r0, r0
  4.         mvhi r1, hi(0x40000000)
  5.         ori r1, r1, lo(0x40000000)
  6.         mvhi r2, hi(0x40000000)
  7.         ori r2, r2, lo(0x40000000)
  8.         mvi r3, 4
  9.  
  10.         wcsr TLBVADDR, r1
  11.         wcsr TLBPADDR, r2
  12.         wcsr TLBCTRL, r3
  13.  
  14.         mvi r8, 16
  15.         wcsr PSW, r8
  16.  
  17.         mvhi r1, hi(0x50000000)
  18.         ori r1, r1, lo(0x50000000)
  19.         mvhi r2, hi(0x40000000)
  20.         ori r2, r2, lo(0x40000000)
  21.         mvi r3, 4
  22.  
  23.         wcsr TLBVADDR, r1
  24.         wcsr TLBPADDR, r2
  25.         wcsr TLBCTRL, r3
  26.  
  27.         mvhi r5, hi(.loop)
  28.         orhi r5, r5, 0x1000
  29.         ori r5, r5, lo(.loop)
  30.  
  31.         b r5
  32.  
  33. .loop:
  34.         bi .loop