2021-01-12 21:14:13 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
2021-05-04 17:31:21 +00:00
|
|
|
|
.LIST OFF
|
2021-01-12 21:14:13 +00:00
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
|
|
|
|
.TF lib/string.o
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.INB inc/macros.i
|
|
|
|
|
.INB inc/a2osx.i
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA #0 KERNEL
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
>PSTR "strlen"
|
|
|
|
|
.DA CODE.strlen
|
2021-05-04 17:31:21 +00:00
|
|
|
|
>PSTR "strcat"
|
|
|
|
|
.DA CODE.strcat
|
|
|
|
|
>PSTR "strcpy"
|
|
|
|
|
.DA CODE.strcpy
|
2021-01-12 21:14:13 +00:00
|
|
|
|
>PSTR "strdup"
|
|
|
|
|
.DA CODE.strdup
|
|
|
|
|
>PSTR "strupr"
|
|
|
|
|
.DA CODE.strupr
|
|
|
|
|
>PSTR "strlwr"
|
|
|
|
|
.DA CODE.strlwr
|
2021-05-04 17:31:21 +00:00
|
|
|
|
>PSTR "strcmp"
|
|
|
|
|
.DA CODE.strcmp
|
|
|
|
|
>PSTR "strcasecmp"
|
|
|
|
|
.DA CODE.strcasecmp
|
2021-01-12 21:14:13 +00:00
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CODE.strlen .DA #CODE.strlen.L
|
|
|
|
|
>SYSCALL strlen
|
|
|
|
|
CODE.strlen.L .EQ *-CODE.strlen
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2021-05-04 17:31:21 +00:00
|
|
|
|
CODE.strcat .DA #CODE.strcat.L
|
|
|
|
|
>SYSCALL strcat
|
|
|
|
|
CODE.strcat.L .EQ *-CODE.strcat
|
|
|
|
|
rts
|
2021-01-12 21:14:13 +00:00
|
|
|
|
*--------------------------------------
|
2021-05-04 17:31:21 +00:00
|
|
|
|
CODE.strcpy .DA #CODE.strcpy.L
|
|
|
|
|
>SYSCALL strcpy
|
|
|
|
|
CODE.strcpy.L .EQ *-CODE.strcpy
|
|
|
|
|
rts
|
2021-01-12 21:14:13 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CODE.strdup .DA #CODE.strdup.L
|
|
|
|
|
>SYSCALL strdup
|
|
|
|
|
CODE.strdup.L .EQ *-CODE.strdup
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CODE.strupr .DA #CODE.strupr.L
|
|
|
|
|
>SYSCALL strupr
|
|
|
|
|
CODE.strupr.L .EQ *-CODE.strupr
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CODE.strlwr .DA #CODE.strlwr.L
|
|
|
|
|
>SYSCALL strlwr
|
|
|
|
|
CODE.strlwr.L .EQ *-CODE.strlwr
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2021-05-04 17:31:21 +00:00
|
|
|
|
CODE.strcmp .DA #CODE.strcmp.L
|
|
|
|
|
>SYSCALL strcmp
|
|
|
|
|
CODE.strcmp.L .EQ *-CODE.strcmp
|
|
|
|
|
rts
|
2021-01-12 21:14:13 +00:00
|
|
|
|
*--------------------------------------
|
2021-05-04 17:31:21 +00:00
|
|
|
|
CODE.strcasecmp .DA #CODE.strcasecmp.L
|
|
|
|
|
>SYSCALL strcasecmp
|
|
|
|
|
CODE.strcasecmp.L .EQ *-CODE.strcasecmp
|
|
|
|
|
rts
|
2021-01-12 21:14:13 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE usr/src/lib/string.o.s
|
|
|
|
|
ASM
|