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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [tools/] [opcodes.asm] - Diff between revs 23 and 29

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

Rev 23 Rev 29
Line 18... Line 18...
        .globl  entry
        .globl  entry
        .ent    entry
        .ent    entry
entry:
entry:
   .set noreorder
   .set noreorder
 
 
 
   #These four instructions must be the first instructions
 
   #convert.exe will correctly initialize $gp
 
   lui   $gp,0
 
   ori   $gp,$gp,0
 
   #convert.exe will set $4=.sbss_start $5=.bss_end
 
   ori   $4,$0,0
 
   ori   $5,$0,0
 
 
   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
 
 
Line 666... Line 674...
   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   $2,$0,0xf000
   ori   $4,$0,0xf000
   ori   $2,$0,0x4142
   ori   $2,$0,0x4142
   sw    $2,16($2)
   sh    $2,16($4)
   lb    $3,16($2)
   lb    $3,16($4)
   sb    $3,0($20)
   sb    $3,0($20)
   lb    $2,17($2)
   lb    $2,17($4)
   sb    $2,0($20)
   sb    $2,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #i: SW
   #i: SW
   ori   $2,$0,'i'
   ori   $2,$0,'i'
Line 898... Line 906...
   ori   $3,$0,16
   ori   $3,$0,16
   srav  $3,$2,$3
   srav  $3,$2,$3
   sb    $3,0($20)
   sb    $3,0($20)
   ori   $3,$0,25
   ori   $3,$0,25
   li    $2,0x84000000
   li    $2,0x84000000
   sra   $3,$2,$3
   srav  $3,$2,$3
   sub   $3,$3,0x80
   sub   $3,$3,0x80
   sb    $3,0($20)
   sb    $3,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #e: SRL
   #e: SRL
Line 910... Line 918...
   sb    $2,0($20)
   sb    $2,0($20)
   li    $2,0x40414243
   li    $2,0x40414243
   srl   $3,$2,16
   srl   $3,$2,16
   sb    $3,0($20)
   sb    $3,0($20)
   li    $2,0x84000000
   li    $2,0x84000000
   sra   $3,$2,25
   srl   $3,$2,25
   sb    $3,0($20)
   sb    $3,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
   #f: SRLV
   #f: SRLV
   ori   $2,$0,'f'
   ori   $2,$0,'f'
Line 923... Line 931...
   ori   $3,$0,16
   ori   $3,$0,16
   srlv  $4,$2,$3
   srlv  $4,$2,$3
   sb    $4,0($20)
   sb    $4,0($20)
   ori   $3,$0,25
   ori   $3,$0,25
   li    $2,0x84000000
   li    $2,0x84000000
   sra   $3,$2,$3
   srlv  $3,$2,$3
   sub   $3,$3,0x80
 
   sb    $3,0($20)
   sb    $3,0($20)
   sb    $21,0($20)
   sb    $21,0($20)
 
 
 
 
   ori   $2,$0,'D'
   ori   $2,$0,'D'

powered by: WebSVN 2.1.0

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