/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/lib/strcpy.s
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/lib/strcpy.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1305 - (show annotations)
Mon Oct 19 19:08:13 2015 UTC (3 years, 10 months ago) by dbug
File size: 326 byte(s)
Removed a redundant copy of get_2ptr
1
2 ; char *strcpy(char *s1,char *s2)
3
4 _strcpy
5 jsr get_2ptr
6
7 _strcpymc
8 ldx op1
9 stx strcpyend+3
10 lda op1+1
11 sta strcpyend+1
12 sta tmp
13 ldy #0
14 strcpyloop
15 lda (op2),Y
16 sta (op1),Y
17 beq strcpyend
18 iny
19 bne strcpyloop
20 inc op1+1
21 inc op2+1
22 jmp strcpyloop
23 strcpyend
24 lda #$01
25 ldx #$03
26 rts
27

  ViewVC Help
Powered by ViewVC 1.1.26