OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

[/] [plasma/] [trunk/] [tools/] [opcodes.asm] - Diff between revs 44 and 68

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 44 Rev 68
Line 30... Line 30...
 
 
   mtc0  $0,$12             #disable interrupts
   mtc0  $0,$12             #disable interrupts
   ori   $20,$0,0xffff      #serial port write address
   ori   $20,$0,0xffff      #serial port write address
   ori   $21,$0,'\n'        # letter
   ori   $21,$0,'\n'        # letter
   ori   $22,$0,'X'         #'X' letter
   ori   $22,$0,'X'         #'X' letter
 
   ori   $23,$0,'\r'
 
   ori   $24,$0,0x0f80         #temp memory
 
 
   ######################################
   ######################################
   #Arithmetic Instructions
   #Arithmetic Instructions
   ######################################
   ######################################
   ori   $2,$0,'A'
   ori   $2,$0,'A'
Line 44... Line 46...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'t'
   ori   $2,$0,'t'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'h'
   ori   $2,$0,'h'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #a: ADD
   #a: ADD
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $3,$0,5
   ori   $3,$0,5
   ori   $4,$0,60
   ori   $4,$0,60
   add   $2,$3,$4
   add   $2,$3,$4
   sb    $2,0($20)    #A
   sb    $2,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #b: ADDI
   #b: ADDI
   ori   $2,$0,'b'
   ori   $2,$0,'b'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $4,$0,60
   ori   $4,$0,60
   addi  $2,$4,5
   addi  $2,$4,5
   sb    $2,0($20)    #A
   sb    $2,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #c: ADDIU
   #c: ADDIU
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $4,$0,50
   ori   $4,$0,50
   addiu $5,$4,15
   addiu $5,$4,15
   sb    $5,0($20)    #A
   sb    $5,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #d: ADDU
   #d: ADDU
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $3,$0,5
   ori   $3,$0,5
   ori   $4,$0,60
   ori   $4,$0,60
   add   $2,$3,$4
   add   $2,$3,$4
   sb    $2,0($20)    #A
   sb    $2,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #e: DIV
   #e: DIV
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
Line 111... Line 118...
   li    $2,-69*13
   li    $2,-69*13
   li    $3,-13
   li    $3,-13
   div   $2,$3
   div   $2,$3
   mflo  $4
   mflo  $4
   sb    $4,0($20)    #E
   sb    $4,0($20)    #E
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #f: DIVU
   #f: DIVU
   ori   $2,$0,'f'
   ori   $2,$0,'f'
   sb    $2,0($20)
   sb    $2,0($20)
Line 122... Line 130...
   ori   $3,$0,13
   ori   $3,$0,13
   divu  $2,$3
   divu  $2,$3
   nop
   nop
   mflo  $4
   mflo  $4
   sb    $4,0($20)    #A
   sb    $4,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #g: MULT
   #g: MULT
   ori   $2,$0,'g'
   ori   $2,$0,'g'
   sb    $2,0($20)
   sb    $2,0($20)
Line 164... Line 173...
   ori   $5,0x8db8
   ori   $5,0x8db8
   mult  $4,$5
   mult  $4,$5
   mfhi  $6
   mfhi  $6
   addiu $7,$6,2356+1+'E' #E
   addiu $7,$6,2356+1+'E' #E
   sb    $7,0($20)
   sb    $7,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #h: MULTU
   #h: MULTU
   ori   $2,$0,'h'
   ori   $2,$0,'h'
   sb    $2,0($20)
   sb    $2,0($20)
Line 175... Line 185...
   ori   $3,$0,13
   ori   $3,$0,13
   multu $2,$3
   multu $2,$3
   nop
   nop
   mflo  $4
   mflo  $4
   sb    $4,0($20)    #A
   sb    $4,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #i: SLT
   #i: SLT
   ori   $2,$0,'i'
   ori   $2,$0,'i'
   sb    $2,0($20)
   sb    $2,0($20)
Line 202... Line 213...
   addi  $5,$4,68
   addi  $5,$4,68
   sb    $5,0($20)    #E
   sb    $5,0($20)    #E
   slt   $4,$3,$2
   slt   $4,$3,$2
   addi  $5,$4,70
   addi  $5,$4,70
   sb    $5,0($20)    #F
   sb    $5,0($20)    #F
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #j: SLTI
   #j: SLTI
   ori   $2,$0,'j'
   ori   $2,$0,'j'
   sb    $2,0($20)
   sb    $2,0($20)
Line 214... Line 226...
   addi  $5,$4,64
   addi  $5,$4,64
   sb    $5,0($20)    #A
   sb    $5,0($20)    #A
   slti  $4,$2,8
   slti  $4,$2,8
   addi  $5,$4,66
   addi  $5,$4,66
   sb    $5,0($20)    #B
   sb    $5,0($20)    #B
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #k: SLTIU
   #k: SLTIU
   ori   $2,$0,'k'
   ori   $2,$0,'k'
   sb    $2,0($20)
   sb    $2,0($20)
Line 226... Line 239...
   addi  $5,$4,64
   addi  $5,$4,64
   sb    $5,0($20)    #A
   sb    $5,0($20)    #A
   sltiu $4,$2,8
   sltiu $4,$2,8
   addi  $5,$4,66
   addi  $5,$4,66
   sb    $5,0($20)    #B
   sb    $5,0($20)    #B
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #l: SLTU
   #l: SLTU
   ori   $2,$0,'l'
   ori   $2,$0,'l'
   sb    $2,0($20)
   sb    $2,0($20)
Line 239... Line 253...
   addi  $5,$4,64
   addi  $5,$4,64
   sb    $5,0($20)    #A
   sb    $5,0($20)    #A
   slt   $4,$3,$2
   slt   $4,$3,$2
   addi  $5,$4,66
   addi  $5,$4,66
   sb    $5,0($20)    #B
   sb    $5,0($20)    #B
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #m: SUB
   #m: SUB
   ori   $2,$0,'m'
   ori   $2,$0,'m'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $3,$0,70
   ori   $3,$0,70
   ori   $4,$0,5
   ori   $4,$0,5
   sub   $2,$3,$4
   sub   $2,$3,$4
   sb    $2,0($20)    #A
   sb    $2,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #n: SUBU
   #n: SUBU
   ori   $2,$0,'n'
   ori   $2,$0,'n'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $3,$0,70
   ori   $3,$0,70
   ori   $4,$0,5
   ori   $4,$0,5
   sub   $2,$3,$4
   sub   $2,$3,$4
   sb    $2,0($20)    #A
   sb    $2,0($20)    #A
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   ######################################
   ######################################
   #Branch and Jump Instructions
   #Branch and Jump Instructions
   ######################################
   ######################################
Line 274... Line 291...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'h'
   ori   $2,$0,'h'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #a: B
   #a: B
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
Line 286... Line 304...
   b     $B1
   b     $B1
   sb    $10,0($20)
   sb    $10,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$B1:
$B1:
   sb    $11,0($20)
   sb    $11,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #b: BAL
   #b: BAL
   ori   $2,$0,'b'
   ori   $2,$0,'b'
   sb    $2,0($20)
   sb    $2,0($20)
Line 309... Line 328...
   sb    $11,0($20)
   sb    $11,0($20)
   jr    $31
   jr    $31
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$BAL2:
$BAL2:
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #c: BEQ
   #c: BEQ
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
Line 329... Line 349...
   beq   $3,$4,$BEQ1
   beq   $3,$4,$BEQ1
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$BEQ1:
$BEQ1:
   sb    $13,0($20)
   sb    $13,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #d: BGEZ
   #d: BGEZ
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
Line 354... Line 375...
   bgez  $0,$BGEZ2
   bgez  $0,$BGEZ2
   nop
   nop
   sb    $15,0($20)
   sb    $15,0($20)
$BGEZ2:
$BGEZ2:
   sb    $13,0($20)
   sb    $13,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #e: BGEZAL
   #e: BGEZAL
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
Line 381... Line 403...
   sb    $11,0($20)
   sb    $11,0($20)
   jr    $31
   jr    $31
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$BGEZAL2:
$BGEZAL2:
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #f: BGTZ
   #f: BGTZ
   ori   $2,$0,'f'
   ori   $2,$0,'f'
   sb    $2,0($20)
   sb    $2,0($20)
Line 400... Line 423...
   bgtz  $2,$BGTZ1
   bgtz  $2,$BGTZ1
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$BGTZ1:
$BGTZ1:
   sb    $13,0($20)
   sb    $13,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #g: BLEZ
   #g: BLEZ
   ori   $2,$0,'g'
   ori   $2,$0,'g'
   sb    $2,0($20)
   sb    $2,0($20)
Line 423... Line 447...
   blez  $0,$BLEZ2
   blez  $0,$BLEZ2
   nop
   nop
   sb    $22,0($20)
   sb    $22,0($20)
$BLEZ2:
$BLEZ2:
   sb    $13,0($20)
   sb    $13,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #h: BLTZ
   #h: BLTZ
   ori   $2,$0,'h'
   ori   $2,$0,'h'
   sb    $2,0($20)
   sb    $2,0($20)
Line 448... Line 473...
   bltz  $4,$BLTZ2
   bltz  $4,$BLTZ2
   nop
   nop
   sb    $13,0($20)
   sb    $13,0($20)
$BLTZ2:
$BLTZ2:
   sb    $14,0($20)
   sb    $14,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #i: BLTZAL
   #i: BLTZAL
   ori   $2,$0,'i'
   ori   $2,$0,'i'
   sb    $2,0($20)
   sb    $2,0($20)
Line 475... Line 501...
   sb    $11,0($20)
   sb    $11,0($20)
   jr    $31
   jr    $31
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$BLTZAL2:
$BLTZAL2:
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #j: BNE
   #j: BNE
   ori   $2,$0,'j'
   ori   $2,$0,'j'
   sb    $2,0($20)
   sb    $2,0($20)
Line 495... Line 522...
   bne   $2,$3,$BNE1
   bne   $2,$3,$BNE1
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$BNE1:
$BNE1:
   sb    $13,0($20)
   sb    $13,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #k: J
   #k: J
   ori   $2,$0,'k'
   ori   $2,$0,'k'
   sb    $2,0($20)
   sb    $2,0($20)
Line 508... Line 536...
   j     $J1
   j     $J1
   sb    $10,0($20)
   sb    $10,0($20)
   sb    $15,0($20)
   sb    $15,0($20)
$J1:
$J1:
   sb    $11,0($20)
   sb    $11,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #l: JAL
   #l: JAL
   ori   $2,$0,'l'
   ori   $2,$0,'l'
   sb    $2,0($20)
   sb    $2,0($20)
Line 531... Line 560...
   sb    $11,0($20)
   sb    $11,0($20)
   jr    $31
   jr    $31
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$JAL2:
$JAL2:
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #m: JALR
   #m: JALR
   ori   $2,$0,'m'
   ori   $2,$0,'m'
   sb    $2,0($20)
   sb    $2,0($20)
Line 555... Line 585...
   sb    $11,0($20)
   sb    $11,0($20)
   jr    $31
   jr    $31
   sb    $12,0($20)
   sb    $12,0($20)
   sb    $22,0($20)
   sb    $22,0($20)
$JALR2:
$JALR2:
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #n: JR
   #n: JR
   ori   $2,$0,'n'
   ori   $2,$0,'n'
   sb    $2,0($20)
   sb    $2,0($20)
Line 569... Line 600...
   jr    $3
   jr    $3
   sb    $10,0($20)
   sb    $10,0($20)
   sb    $15,0($20)
   sb    $15,0($20)
$JR1:
$JR1:
   sb    $11,0($20)
   sb    $11,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #o: NOP
   #o: NOP
   ori   $2,$0,'o'
   ori   $2,$0,'o'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,65
   ori   $2,$0,65
   nop
   nop
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
   ######################################
   ######################################
   #Load, Store, and Memory Control Instructions
   #Load, Store, and Memory Control Instructions
Line 591... Line 624...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #a: LB
   #a: LB
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,0x41424344
   li    $3,0x41424344
   sw    $3,16($2)
   sw    $3,16($2)
   lb    $4,16($2)
   lb    $4,16($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,17($2)
   lb    $4,17($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,18($2)
   lb    $4,18($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $2,19($2)
   lb    $2,19($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #b: LBU
   #b: LBU
   ori   $2,$0,'b'
   ori   $2,$0,'b'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,0x41424344
   li    $3,0x41424344
   sw    $3,16($2)
   sw    $3,16($2)
   lb    $4,16($2)
   lb    $4,16($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,17($2)
   lb    $4,17($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,18($2)
   lb    $4,18($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $2,19($2)
   lb    $2,19($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #c: LH
   #c: LH
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,0x00410042
   li    $3,0x00410042
   sw    $3,16($2)
   sw    $3,16($2)
   lh    $4,16($2)
   lh    $4,16($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lh    $2,18($2)
   lh    $2,18($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #d: LHU
   #d: LHU
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,0x00410042
   li    $3,0x00410042
   sw    $3,16($2)
   sw    $3,16($2)
   lh    $4,16($2)
   lh    $4,16($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lh    $2,18($2)
   lh    $2,18($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #e: LW
   #e: LW
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,'A'
   li    $3,'A'
   sw    $3,16($2)
   sw    $3,16($2)
   ori   $3,$0,0
   ori   $3,$0,0
   lw    $2,16($2)
   lw    $2,16($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #f: LWL & LWR
   #f: LWL & LWR
   ori   $2,$0,'f'
   ori   $2,$0,'f'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,'A'
   li    $3,'A'
   sw    $3,16($2)
   sw    $3,16($2)
   ori   $3,$0,0
   ori   $3,$0,0
   lwl   $2,16($2)
   lwl   $2,16($2)
   lwr   $2,16($2)
   lwr   $2,16($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #g: SB
   #g: SB
   ori   $2,$0,'g'
   ori   $2,$0,'g'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'A'
   ori   $2,$0,'A'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #h: SH
   #h: SH
   ori   $2,$0,'h'
   ori   $2,$0,'h'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $4,$0,0xf000
   or    $4,$0,$24
   ori   $2,$0,0x4142
   ori   $2,$0,0x4142
   sh    $2,16($4)
   sh    $2,16($4)
   lb    $3,16($4)
   lb    $3,16($4)
   sb    $3,0($20)
   sb    $3,0($20)
   lb    $2,17($4)
   lb    $2,17($4)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #i: SW
   #i: SW
   ori   $2,$0,'i'
   ori   $2,$0,'i'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,0x41424344
   li    $3,0x41424344
   sw    $3,16($2)
   sw    $3,16($2)
   lb    $4,16($2)
   lb    $4,16($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,17($2)
   lb    $4,17($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,18($2)
   lb    $4,18($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $2,19($2)
   lb    $2,19($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #j: SWL & SWR
   #j: SWL & SWR
   ori   $2,$0,'j'
   ori   $2,$0,'j'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf000
   or    $2,$0,$24
   li    $3,0x41424344
   li    $3,0x41424344
   swl   $3,16($2)
   swl   $3,16($2)
   swr   $3,16($2)
   swr   $3,16($2)
   lb    $4,16($2)
   lb    $4,16($2)
   sb    $4,0($20)
   sb    $4,0($20)
Line 722... Line 765...
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $4,18($2)
   lb    $4,18($2)
   sb    $4,0($20)
   sb    $4,0($20)
   lb    $2,19($2)
   lb    $2,19($2)
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
   ######################################
   ######################################
   #Logical Instructions
   #Logical Instructions
Line 738... Line 782...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'i'
   ori   $2,$0,'i'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #a: AND
   #a: AND
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0x0741
   ori   $2,$0,0x0741
   ori   $3,$0,0x60f3
   ori   $3,$0,0x60f3
   and   $4,$2,$3
   and   $4,$2,$3
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #b: ANDI
   #b: ANDI
   ori   $2,$0,'b'
   ori   $2,$0,'b'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0x0741
   ori   $2,$0,0x0741
   andi  $4,$2,0x60f3
   andi  $4,$2,0x60f3
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #c: LUI
   #c: LUI
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
   lui   $2,0x41
   lui   $2,0x41
   srl   $3,$2,16
   srl   $3,$2,16
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #d: NOR
   #d: NOR
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
   li    $2,0xf0fff08e
   li    $2,0xf0fff08e
   li    $3,0x0f0f0f30
   li    $3,0x0f0f0f30
   nor   $4,$2,$3
   nor   $4,$2,$3
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #e: OR
   #e: OR
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0x40
   ori   $2,$0,0x40
   ori   $3,$0,0x01
   ori   $3,$0,0x01
   or    $4,$2,$3
   or    $4,$2,$3
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #f: ORI
   #f: ORI
   ori   $2,$0,'f'
   ori   $2,$0,'f'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0x40
   ori   $2,$0,0x40
   ori   $4,$2,0x01
   ori   $4,$2,0x01
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #g: XOR
   #g: XOR
   ori   $2,$0,'g'
   ori   $2,$0,'g'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf043
   ori   $2,$0,0xf043
   ori   $3,$0,0xf002
   ori   $3,$0,0xf002
   xor   $4,$2,$3
   xor   $4,$2,$3
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #h: XORI
   #h: XORI
   ori   $2,$0,'h'
   ori   $2,$0,'h'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,0xf043
   ori   $2,$0,0xf043
   xor   $4,$2,0xf002
   xor   $4,$2,0xf002
   sb    $4,0($20)
   sb    $4,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
   ######################################
   ######################################
   #Move Instructions
   #Move Instructions
Line 820... Line 873...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'v'
   ori   $2,$0,'v'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #a: MFHI
   #a: MFHI
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,65
   ori   $2,$0,65
   mthi  $2
   mthi  $2
   mfhi  $3
   mfhi  $3
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #b: MFLO
   #b: MFLO
   ori   $2,$0,'b'
   ori   $2,$0,'b'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,65
   ori   $2,$0,65
   mtlo  $2
   mtlo  $2
   mflo  $3
   mflo  $3
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #c: MTHI
   #c: MTHI
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,65
   ori   $2,$0,65
   mthi  $2
   mthi  $2
   mfhi  $3
   mfhi  $3
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #d: MTLO
   #d: MTLO
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,65
   ori   $2,$0,65
   mtlo  $2
   mtlo  $2
   mflo  $3
   mflo  $3
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
   ######################################
   ######################################
   #Shift Instructions
   #Shift Instructions
Line 872... Line 930...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'f'
   ori   $2,$0,'f'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'t'
   ori   $2,$0,'t'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #a: SLL
   #a: SLL
   ori   $2,$0,'a'
   ori   $2,$0,'a'
   sb    $2,0($20)
   sb    $2,0($20)
   li    $2,0x40414243
   li    $2,0x40414243
   sll   $3,$2,8
   sll   $3,$2,8
   srl   $3,$3,24
   srl   $3,$3,24
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #b: SLLV
   #b: SLLV
   ori   $2,$0,'b'
   ori   $2,$0,'b'
   sb    $2,0($20)
   sb    $2,0($20)
   li    $2,0x40414243
   li    $2,0x40414243
   ori   $3,$0,8
   ori   $3,$0,8
   sllv  $3,$2,$3
   sllv  $3,$2,$3
   srl   $3,$3,24
   srl   $3,$3,24
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #c: SRA
   #c: SRA
   ori   $2,$0,'c'
   ori   $2,$0,'c'
   sb    $2,0($20)
   sb    $2,0($20)
Line 903... Line 964...
   sb    $3,0($20)
   sb    $3,0($20)
   li    $2,0x84000000
   li    $2,0x84000000
   sra   $3,$2,25
   sra   $3,$2,25
   sub   $3,$3,0x80
   sub   $3,$3,0x80
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #d: SRAV
   #d: SRAV
   ori   $2,$0,'d'
   ori   $2,$0,'d'
   sb    $2,0($20)
   sb    $2,0($20)
Line 917... Line 979...
   ori   $3,$0,25
   ori   $3,$0,25
   li    $2,0x84000000
   li    $2,0x84000000
   srav  $3,$2,$3
   srav  $3,$2,$3
   sub   $3,$3,0x80
   sub   $3,$3,0x80
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #e: SRL
   #e: SRL
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
Line 928... Line 991...
   srl   $3,$2,16
   srl   $3,$2,16
   sb    $3,0($20)
   sb    $3,0($20)
   li    $2,0x84000000
   li    $2,0x84000000
   srl   $3,$2,25
   srl   $3,$2,25
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #f: SRLV
   #f: SRLV
   ori   $2,$0,'f'
   ori   $2,$0,'f'
   sb    $2,0($20)
   sb    $2,0($20)
Line 941... Line 1005...
   sb    $4,0($20)
   sb    $4,0($20)
   ori   $3,$0,25
   ori   $3,$0,25
   li    $2,0x84000000
   li    $2,0x84000000
   srlv  $3,$2,$3
   srlv  $3,$2,$3
   sb    $3,0($20)
   sb    $3,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
   ori   $2,$0,'D'
   ori   $2,$0,'D'
   sb    $2,0($20)
   sb    $2,0($20)
Line 952... Line 1017...
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'n'
   ori   $2,$0,'n'
   sb    $2,0($20)
   sb    $2,0($20)
   ori   $2,$0,'e'
   ori   $2,$0,'e'
   sb    $2,0($20)
   sb    $2,0($20)
 
   sb    $23,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
$DONE:
$DONE:
   j     $DONE
   j     $DONE

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.