Last change
on this file since d21fc6f was 7bf3856, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added Alcyon C reference output.
|
-
Property mode
set to
100644
|
File size:
413 bytes
|
Rev | Line | |
---|
[7bf3856] | 1 | .globl _str2uc
|
---|
| 2 | .text
|
---|
| 3 | _str2uc:
|
---|
| 4 | ~~str2uc:
|
---|
| 5 | ~s=R13
|
---|
| 6 | link R14,#0
|
---|
| 7 | movem.l R6-R7/R12-R13,-(sp)
|
---|
| 8 | ~c=R7
|
---|
| 9 | ~r=R12
|
---|
| 10 | *line 13
|
---|
| 11 | move.l R13,R12
|
---|
| 12 | *line 15
|
---|
| 13 | move.l 8(R14),R13
|
---|
| 14 | *line 15
|
---|
| 15 | bra L4
|
---|
| 16 | L3:
|
---|
| 17 | *line 16
|
---|
| 18 | move.b R7,R0
|
---|
| 19 | ext.w R0
|
---|
| 20 | move R0,(sp)
|
---|
| 21 | jsr _toupper
|
---|
| 22 | move.b R0,(R13)+
|
---|
| 23 | L4:
|
---|
| 24 | *line 16
|
---|
| 25 | move.b (R13),R7
|
---|
| 26 | bne L3
|
---|
| 27 | L2:
|
---|
| 28 | *line 18
|
---|
| 29 | move.l R12,R0
|
---|
| 30 | bra L1
|
---|
| 31 | L1:tst.l (sp)+
|
---|
| 32 | movem.l (sp)+,R7-R7/R12-R13
|
---|
| 33 | unlk R14
|
---|
| 34 | rts
|
---|
| 35 | .data
|
---|
Note:
See
TracBrowser
for help on using the repository browser.