; ; File generated by cc65 v 2.11.0 ; .fopt compiler,"cc65 v 2.11.0" .setcpu "6502" .smart on .autoimport on .case on .debuginfo on .importzp sp, sreg, regsave, regbank, tmp1, ptr1, ptr2 .macpack longbranch .dbg file, "strxfrm.c", 209, 959521248 .dbg file, "../../include/string.h", 4676, 1116364269 .dbg file, "../../include/stddef.h", 2974, 1061022172 .import _strlen .import _strncpy .export _strxfrm ; --------------------------------------------------------------- ; unsigned int __near__ strxfrm (unsigned char*, const unsigned char*, unsigned int) ; --------------------------------------------------------------- .segment "CODE" .proc _strxfrm: near .segment "CODE" ; ; strncpy (dest, src, count); ; .dbg line, "strxfrm.c", 15 jsr decsp4 ldy #$09 jsr ldaxysp ldy #$02 sta (sp),y iny txa sta (sp),y ldy #$07 jsr ldaxysp ldy #$00 sta (sp),y iny txa sta (sp),y ldy #$05 jsr ldaxysp jsr _strncpy ; ; return strlen (src); ; .dbg line, "strxfrm.c", 16 ldy #$03 jsr ldaxysp jsr _strlen ; ; } ; .dbg line, "strxfrm.c", 17 jmp incsp6 .dbg line .endproc