home *** CD-ROM | disk | FTP | other *** search
- !
- ! A string copying program. Nothing unusual here.
- !
- .seg "text"
- save %sp, -96, %sp
- clr %o0
- set str, %o0
- set out, %o1
- call _bcopy
- mov 24, %o2
- mov 17,%o0
- mov 1, %g1
- ta 0
- nop
- L1:
- inc %o0
- stb %o4,[%o1]
- inc %o1
- _bcopy:
- deccc %o2
- bge,a L1
- ldub [%o0], %o4
- retl
- nop
-
- .seg "data"
- str:
- .asciz "this is a sample string"
- .seg "bss"
- out:
- .skip 30
-
-
-