Magellan Linux

Contents of /trunk/mkinitrd-magellan/isolinux/strcpy.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File size: 225 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 ;
2 ; strcpy: Copy DS:SI -> ES:DI up to and including a null byte;
3 ; on exit SI and DI point to the byte *after* the null byte
4 ;
5 section .text
6
7 strcpy: push ax
8 .loop: lodsb
9 stosb
10 and al,al
11 jnz .loop
12 pop ax
13 ret
14