summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/core/strcpy.inc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/core/strcpy.inc')
-rw-r--r--contrib/syslinux-4.02/core/strcpy.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/core/strcpy.inc b/contrib/syslinux-4.02/core/strcpy.inc
new file mode 100644
index 0000000..9762cbb
--- /dev/null
+++ b/contrib/syslinux-4.02/core/strcpy.inc
@@ -0,0 +1,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