+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Location
    your roof
    Posts
    386
    Points
    1,150,757.07
    Rep Power
    155

    Default one level dma two point mark and recall template

    credit sdrawkcab

    Code:
    lui t0 $XXXX//first half of controller address (real addressing)
    lw t0 $XXXX(t0)//second half of controller address
    lui t1 $XXXX//first half of pointer (real addressing)
    lw t1 $XXXX(t1)//second half of pointer
    lui t2 $first half of noped address 
    addiu t3 zero $XXXX//mark value-1
    addiu t4 zero $XXXX//recall value-1
    addiu t5 zero $XXXX//mark value-2
    addiu t6 zero $XXXX//recall value-2
    bne t0 t3 $XXXXXXXX//branch to next bne
    nop 
    lw t7 $XXXX//second half first nop address +0(t2)
    lw t8 $XXXX//second half first nop address +4(t2)
    lw t9 $XXXX//second half first nop address +8(t2)
    sw t7 $XXXX//x coordinate offset (t1)
    sw t8 $XXXX//y coordinate offset (t1)
    sw t9 $XXXX//z coordinate offset (t1)
    bne t0 t4 $XXXXXXXX//branch to next bne
    nop
    lw t7 $XXXX//x coordinate offset (t1)
    lw t8 $XXXX//y coordinate offset (t1)
    lw t9 $XXXX//z coordinate offset (t1)
    sw t7 $XXXX//second half first nop address +0(t2)
    sw t8 $XXXX//second half first nop address +4(t2)
    sw t9 $XXXX//second half first nop address +8(t2)
    bne t0 t5 $XXXXXXXXbranch to next bne
    nop
    lw t7 $XXXX//second half second nop address +0(t2)
    lw t8 $XXXX//second half second nop address +4(t2)
    lw t9 $XXXX//second half second nop address +8(t2)
    sw t7 $XXXX//x coordinate offset (t1)
    sw t8 $XXXX//y coordinate offset (t1)
    sw t9 $XXXX//z coordinate offset (t1)
    bne t0 t6 $XXXXXXXX//branch to jr ra
    nop
    lw t7 $XXXX//x coordinate offset (t1)
    lw t8 $XXXX//y coordinate offset (t1)
    lw t9 $XXXX//z coordinate offset (t1)
    sw t7 $XXXX//second half second nop address +0(t2)
    sw t8 $XXXX//second half second nop address +4(t2)
    sw t9 $XXXX//second half second nop address +8(t2)
    jr ra
    nop 
    J $XXXXXXXX//hook

  2. #2
    Join Date
    Apr 2012
    Location
    Your Mom's Bed
    Posts
    65
    Points
    355,791.75
    Rep Power
    0

    Default Re: one level dma two point mark and recall template

    Vvv wow!!

  3. #3
    Join Date
    Aug 2011
    Location
    your roof
    Posts
    386
    Points
    1,150,757.07
    Rep Power
    155

    Default Re: one level dma two point mark and recall template

    Quote Originally Posted by aptwhka View Post
    Vvv wow!!
    why thank you.

  4. #4
    Join Date
    Apr 2012
    Location
    Your Mom's Bed
    Posts
    65
    Points
    355,791.75
    Rep Power
    0

    Default Re: one level dma two point mark and recall template

    Quote Originally Posted by sdrawkcab View Post
    why thank you.
    Don't push is Niggah

  5. #5
    Join Date
    Aug 2011
    Location
    your roof
    Posts
    386
    Points
    1,150,757.07
    Rep Power
    155

    Default Re: one level dma two point mark and recall template

    Quote Originally Posted by aptwhka View Post
    Don't push is Niggah
    o_o, im not a noob.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts