summaryrefslogtreecommitdiff
path: root/strcpy.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-07-26 23:52:33 +0000
committerhpa <hpa>2004-07-26 23:52:33 +0000
commit21a0ded2844b4b2a48ac9eda8be86e6287da59d7 (patch)
tree06c71f76b7fa27553bf78a84d6494eab21e5387c /strcpy.inc
parent9d4d7707c11162a2f827bf72efed2c8824b8317b (diff)
downloadsyslinux-21a0ded2844b4b2a48ac9eda8be86e6287da59d7.tar.gz
Move raw console access and strcpy() into their own include files
Diffstat (limited to 'strcpy.inc')
-rw-r--r--strcpy.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/strcpy.inc b/strcpy.inc
new file mode 100644
index 00000000..beb59542
--- /dev/null
+++ b/strcpy.inc
@@ -0,0 +1,12 @@
+;
+; 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
+;
+strcpy: push ax
+.loop: lodsb
+ stosb
+ and al,al
+ jnz .loop
+ pop ax
+ ret
+