File: strcpy.inc

package info (click to toggle)
syslinux 3%3A6.03%2Bdfsg-5%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 41,276 kB
  • sloc: ansic: 358,748; asm: 9,608; pascal: 4,809; perl: 3,894; makefile: 2,488; sh: 324; python: 266; xml: 39
file content (13 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
;
; strcpy: Copy DS:SI -> ES:DI up to and including a null byte;
;	  on exit SI and DI point to the byte *after* the null byte
;
		section .text16

strcpy:		push ax
.loop:		lodsb
		stosb
		and al,al
		jnz .loop
		pop ax
		ret