Last change
on this file since 27 was
1,
checked in by buchmann, 17 years ago
|
Initial import from CVS repository
|
File size:
492 bytes
|
Line | |
---|
1 | .text |
---|
2 | .align 2 |
---|
3 | .globl uputs |
---|
4 | .ent uputs |
---|
5 | .set noreorder |
---|
6 | |
---|
7 | uputs: |
---|
8 | addu $8, $0, $4 |
---|
9 | la $3, 0xa0000000 |
---|
10 | |
---|
11 | or $9,$0,$5 |
---|
12 | sll $9,$9,24 |
---|
13 | or $3,$3,$9 |
---|
14 | |
---|
15 | lb $2, ($8) |
---|
16 | beq $2, $0, endputs |
---|
17 | nop |
---|
18 | addiu $8, $8, 1 |
---|
19 | |
---|
20 | loop: |
---|
21 | sb $2, ($3) |
---|
22 | lb $2, ($8) |
---|
23 | addiu $8, $8, 1 |
---|
24 | bne $2, $0, loop |
---|
25 | nop |
---|
26 | |
---|
27 | endputs: |
---|
28 | addiu $2, $0, 0xA |
---|
29 | sb $2, ($3) |
---|
30 | j $31 |
---|
31 | addu $2, $0, 0 |
---|
32 | .end uputs |
---|
33 | |
---|
34 | .set reorder |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.