summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-02-27 04:36:46 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-02-27 04:36:46 (GMT)
commit40d6f2b0c1e594899ca94821012fa84679700b75 (patch)
tree6201e872ac054dc7ba2d57062ef1e59a157fb1f7
parent84a28e9161de4e0cd2caa53b6499c125738ae598 (diff)
downloadvirtio9p-40d6f2b0c1e594899ca94821012fa84679700b75.zip
virtio9p-40d6f2b0c1e594899ca94821012fa84679700b75.tar.gz
virtio9p-40d6f2b0c1e594899ca94821012fa84679700b75.tar.bz2
virtio9p-40d6f2b0c1e594899ca94821012fa84679700b75.tar.xz
utf.S: source is fs:si
-rw-r--r--utf.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/utf.S b/utf.S
index c50099d..d50e779 100644
--- a/utf.S
+++ b/utf.S
@@ -62,7 +62,7 @@ cptoutf:
/* ------------------------------------------------------------------------- *
* utftocp
*
- * Convert a UTF-8 sequence in DS:SI to codepage form in AL, returning
+ * Convert a UTF-8 sequence in FS:SI to codepage form in AL, returning
* CF=1 (and SI undefined) for any error, unknown or noncanonical
* character.
*
@@ -78,7 +78,7 @@ utftocp:
xorw %cx,%cx
xorw %dx,%dx
- lodsb
+ fs lodsb
andb %al,%al
jns 1f /* 1-byte sequence */
@@ -101,7 +101,7 @@ utftocp:
3:
movw %ax,%dx
shlw $6,%dx
- lodsb
+ fs lodsb
xorb $0x80,%al
cmpb $0x40,%al
jae 99b
@@ -109,7 +109,7 @@ utftocp:
2:
addw %ax,%dx
shlw $6,%dx
- lodsb
+ fs lodsb
xorb $0x80,%al
cmpb $0x40,%al
jae 99b