summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2002-06-11 19:18:00 +0000
committerhpa <hpa>2002-06-11 19:18:00 +0000
commitaae1e57ba0f31f1c20fe515c6e40d40a60eace70 (patch)
tree416db1dd35ff790d6bc8dae90718f241be676ead
parente60da9482425e0618096d2a39ecb44ca43aebf43 (diff)
downloadsyslinux-aae1e57ba0f31f1c20fe515c6e40d40a60eace70.tar.gz
Update documentation; return ClustSize not SecPerClust on an open request...syslinux-2.00-pre2
-rw-r--r--comboot.doc36
-rw-r--r--comboot.inc2
2 files changed, 36 insertions, 2 deletions
diff --git a/comboot.doc b/comboot.doc
index db9203ac..97bb89f4 100644
--- a/comboot.doc
+++ b/comboot.doc
@@ -131,8 +131,42 @@ supported INT 20h - terminate program.
++++ DOS-COMPATIBLE API CALLS ++++
-INT 20h: Terminate program
+INT 20h Terminate program
INT 21h AH=00h Terminate program
+INT 21h AH=4Ch Terminate program
+
+ All of these terminate the program.
+
+INT 21h AH=01h Get Key with Echo
+
+ Reads a key from the console input, with echo to the console
+ output. The read character is returned in AL.
+
+INT 21h AH=02h Write Character
+
+ Writes a character in DL to the console output.
+
+INT 21h AH=08h Get Key without Echo
+
+ Reads a key fron the console input, without echoing it to the
+ console output. The read character is returned in AL.
+
+INT 21h AH=0Bh Check Keyboard
+
+ Returns AL=FFh if there is a keystroke waiting (which can then
+ be read with INT 21h, AH=01h or AH=08h), otherwise AL=00h.
+
+INT 21h AH=30h Check DOS Version
+
+ This function returns AX=BX=CX=DX=0, corresponding to a
+ hypothetical "DOS 0.0", but the high parts of EAX-EBX-ECX-EDX
+ spell "SYSLINUX":
+
+ EAX=53590000h EBX=534C0000h ECX=494E0000h EDX=55580000h
+
+ This function can thus be used to distinguish running on
+ SYSLINUX from running on DOS.
+
++++ SYSLINUX-SPECIFIC API CALLS ++++
diff --git a/comboot.inc b/comboot.inc
index 319e5005..e8ec32c3 100644
--- a/comboot.inc
+++ b/comboot.inc
@@ -330,7 +330,7 @@ comapi_open:
xchg eax,edx
shr eax,16
xchg ax,dx
- mov cx,[SecPerClust]
+ mov cx,[ClustSize]
clc
ret
.err: