`
`The
`
`Microsoft '
`
`guide for
`
`Assamhly
`
`Language
`
`andc
`
`prug ramma rs.
`
`000001
`
`Blue Coat Systems - Exhibit 1020
`
`Blue Coat Systems - Exhibit 1020
`
`
`
`PUBLISHED H-‘I’
`MJCEOSDII Press
`
`A lJiI.'I.I:irI-o of Microsoft Corporation
`1:’-It'll] NE. 31'-.-th Way, Ho:-: ':J?I[J'.|?, FledmoIId,WashiIIgIrIrI STI:DI'_II?3.-':|"I-']'I-'
`
`L‘upyrigIII =6: WEE: by Ray ]_JIIrIc:In
`All rights reserved. Nti part of the contents oI this book may
`be reproduced or traIIsrII:tted In any form or by any oteans without
`the written Iflerlriission oi the [.'r|.ll?|II5lIC1'.
`
`_ Library of Congress Cataloging in Publication Data
`Duncan, Flay
`.-"id-»'aIIeed II.-IS-DCJ.‘-I
`Includes irtdes.
`
`2. Assembler language
`1. l'I-‘IS-DDS {Computer operalirigsystem}
`[Computer program language]
`3. C [Computer program language}
`I. Title.
`Q.-5I?fi.?fi.C|Ea.3D85E
`ISBN EJ-914845-T?-2
`
`198-I5
`
`'|]IJ5.4’4I5
`
`E6-E496
`
`i’I'irIted and h-ound III the l.|oited States ol .-Iknteruea.
`
`3-1-fits’:-'l:I‘2‘
`
`1-‘GFG H-":i|U9R?I’-I
`
`Distributed to the book trade in the United States by Harper 3: Rio-II.-'.
`
`Distributed to the boo}-I trade In Canada by General Fuhiisltmg Co, Ltd.
`llist rihuted lo the lII.II.'II-'. trade outside the L,|:1:ited bitates of America
`
`and C:-titadal by Penguirt Books I.1-:1.
`
`Penguin Books Ltd.. Harmoridsworth. I'-'IitI-rIlI:sex. England
`Peoguln Books Australia Ltd.. l1iI'Ig'I=.'ood."I«"I'ctI'Iria, Australia
`Fertguitt Boo!-rs
`I.TII.. IH2-'I‘:Il'I Wairatt HIIHII,
`.-"'|.I|I;'I~'.la|:1I] ID,
`NeI.I.' ZealarIr.I
`
`British C:I-Haloging in Publieatiorl Data available
`
`I -.‘-rI'I-r'.I:I-I
`
`'.I.'_~I*-|-.'I-.'-.I
`
`Ir.I-.I;t'.'II.IrI=..
`
`;,.._-
`
`I‘n.'II I..Ii1--r.IlI.IrIr-I.
`."'I I i I
`.I I|.|II.I'.'|||.||II III
`l.\
`Ll.'\ IN I
`I
`I-. e_I-I:-.'I .'.I I: I..II".II.IIL -'t I.
`'5.
`|'t'||""I|.__'|
`|I'-.-1II:'I.I.'-.I
`=-
`I’. -‘-:II'.'.I.|'
`I-.
`.I I.'.IIII'I'.:.rl-.
`-.‘-II I
`'|.Ir.I
`I!-.4-.:
`: II-. :-I.1I1-
`I"-.'rI-In -".‘x"'
`'. TI.
`.'_I-.r-. r-.
`.5 Ir.I-.L. II1.I-'It
`.‘-I
`|'|‘:5_'II.I!
`I
`.‘|lll|'\I|":E;'||Ij l'nr|‘-.,u..I;|:u.
`I‘: 3-|'- I
`' " l'-
`':'|II I-'|f' III -3"-"3'. I II‘
`-'‘\--‘--I'‘'''''.
`'-'I' -"-I-3"I'
`.II'-.I
`I
`':!-CI|.I
`III.\'.'.II.II" I:I.'
`.-I
`I3-I.._'I:s| E-I-.-.I.IrI !:
`|IuI-rp-nr.I-'I :'.
`I |I"'
`IN I
`lr.lI.L.'rll.lrIt nr'|
`I-. I.-.|I II-I'.1. 5.. Int
`I'.:.,xg-I-_-.,-_-;.|.._1¢-I
`lg-III,-I
`.. I:.-.I,II,-;n_uL .,-f
`Inn-i'
`:- .l
`r-.'.'_I-.r-. r-.
`.1 r-'I..II'III Irk .II -|
`IIIN-1"-'L-:-iI'I" |-.
`III-\'| "'
`I'I.I.':'_::I‘1II'TI-I.I
`I‘
`IIII In.IrI._ :II:I i‘l'
`3: i"'_ I-'|. —|
`in. I‘;
`‘
`I-‘I. X I " .II--.I
`I.Ip'I..'..--,-. "‘
`II.l.I|. m.IrI.-. II.‘
`|I1I:-r|1.Ir -.1:
`'.|
`t1I|-I.:Iq_'|-N "'.1.I. 1|.-:I, . t '- ..-_-._-r m._1.
`I":
`I
`'- III I
`I
`I
`IN .1 I-'.I|.IR.'.'||J|I\ -.'!' L.Il'-.>nl- II
`-.
`."tII-. E|.|‘-'u\I.I.'l'!'.‘- Illl IIr|Ir:-rJII-.5.
`l'|"‘-III\'\-'-I- I ':.'I "
`Iu -I
`'I.'[uI\l'.':I.'-.I
`I|.|II.III.'|||.|.'II
`III
`I ‘-:I.'I:rr-.
`\A."I-I'-'u.Ir|._ !.':-.-.‘-r:'-.‘-r.1I:'II
`l-.‘-!'.:- ‘ I- .I -':.'[eI\lI.':I.'-.5 !I.I-.I-.'II1.I:I\.
`III
`I.'I|IllE'
`I"I."-'.'I-.".'I.'II l‘Il
`|.'IIr|‘-.‘-r.II l.|I'-
`'-.'--II-.I"~l.I' "
`'.-
`I
`I-I.'e_I~t.'I-.'.I l.'I..!r:IIJrI. -3':
`\'|II-'I-I‘r.‘- |I1rI'rrI.I-:IIIIui
`|IInrp.1r.IrIn|1
`"III-. I-'--Ilt '. -KI‘-I |'5. 3-" ".
`.I-'I-.I
`l".I:'..'\-'|."ii' 4r-.' I-.'.'_I-.rI I|.-I.'. II.I|.III.'II'.IFIC3'
`I'-‘
`'‘\III. rum-tr '-.'-‘-.':»=|.':.IIu.Ia:
`.5‘.-.Ix.III-.-.'.:
`II-I-.-.'--"I'-
`'
`Il3'I-.Is
`II‘1'\IIIsl|2 ‘.
`IIIILI
`Ir 3..
`I‘
`'v'- ''
`.Ir:' rr I-I.I!'I'II.II'IC\
`.-I M..I| |_'.lI| ['I."IIi“.I‘.II'!-'5
`'2.-.-:'.:|‘-III‘-. I'I-.-I: |.‘1'\Il.lI|.'I.I
`‘.rII-.‘-rpIIr'.I< II
`.VIIIrIIr-:‘-|.I
`I.'l
`"III-‘I.-."III.I "
`'-"-'I.'1 I-.
`.l r'.'I.:'.-l.'r.'II lr..dI.'I.'II.r';.
`‘I-'-=r|-'II I.-III l'-.'-"'
`l‘-
`I
`lr.I-.I-.'III.I.'I: IIl'I"-.'l'.'r N-.17-:-.IrI
`II'b.'IIr|\.|r.III'|I
`E. I-."-. I.I-.'-' '
`'I't_'|
`:-.
`r-.'-.'I-I.Irr-.-.!
`lr.I-.I-.'rII.I.'II.
`.‘-II
`|I'i-."I.'I.II'-.‘- \.axI:'-In EIII -.'-FPI -r.:.I:-II
`
`.l
`
`
`
`
`
`
`
`
`
`//
`1111' 31H{33)
`Gem-rral
`
`_
`
`_
`
`It)tZ’.N'i(33j
`I7'tim‘tioii .~;umi
`
`Most ofthe MS—I)0§> operzitiiig-systetii services are invoked through softwzire interrupt 211-—L
`Using these servieere. 21 program can inspect disk directories, niake or delete files. read or ‘a.t':"'_"
`records within tiles. set or read the real—time clock. and perform many other filiietioiis in ;
`h;tru;iw;1re-iiidepende tit man tier.
`The MS—| )0S ftmctions avziilgihle through hit 2H 1 are well .~st;1nd;1rdized and avztilahle on 3:2".
`t'\«1S—I'JO.S .'-1'}-'h'IIt.’I11.
`iJ]"L)gT;!.l11S that perform all HO through these tiilictions will run on any :..-
`chine that supports. .-'v1S—l)t.)S.
`
`(hilliiig
`seqtieiieez
`
`MS-I J05 sen-‘ices can be invoked in several different \-ways:
`Load the AH register with the tliiietioii number and other re_t{i.~;ter~' xv:
`e;i]l—speeifit' p;1l'k1Il1L‘tL'l'.‘i, then execute an hit 2|} I. This is the FL‘COI!'..—_
`method and producer, the t'le'.me.~;t.
`II1(TI:w'[ eompaet objeet code.
`
`inmr
`
`ah, functi 0n_r:umber
`
`int
`
`2‘|h
`
`— E} B Load the AH regi'<ter with tliefiinction 1iL1niher;1nd other r
`-7:
`
`with the t';IIl—speeitit‘ pzirzimeters. then execute it long Call to ot't'<~e.
`' ’
`the progruni 5egn1:.‘iit prefix. This liiiknge is .l\-".1iiL1hiL'()lIi}-' \\'iI}1.‘-‘.3-—.‘| ‘I
`version 2.H;Ii1d abox-'e.
`
`'- 1:’
`Load the ("IL register with the i_1.1llI;'ti(!n numher mid other i'egi.~'ter~'
`u::1]I—.<;peeific pcircmieters, then execute an il1[rJSL‘g1]1L‘I1{ Cd” to oI'I_.~:.
`in the PSI’. whicli (_'0l]1'.1i11S'.'J long; Cal] to the MS-1)t)S i‘l_I]'1(‘IiI.lT'l d:s~:.:
`This method its ViiiitiUni}-'i_U]‘i‘lI1]t‘[it‘JII e:1|lstIItIH throu_t:h 2-H I. R:.; -"H-'
`is :i|\-\-';iy.w de.~troyed itthis method is used; otherwi.se._ the rexultx ;; _.,
`as tor the first two methods disetissed J.i’J0\.-'L‘. The precursor to .\’i.--'
`I
`8(»—|)(_‘J.‘>' origin:1I]_\-' sold lay Seattle Computer l’rodiit't.~e ('<<ee(fh.ip:-_'‘
`chided this liiik;1_e,e II1et‘|i;1iii:siii to tiaeiiitate e.i.x'y conversion ot_( '1'
`grariis. and its use should now he avoided.
`
`The contents otqall registerei are pre.~s'er\»'eti '.ICl'0.*i.H' MS-I )0S eiills. except For those ret::~t;-
`U5L‘d to return results. The only (‘Xt‘(‘p[il)I]S are tiiiietioii (:31 I, which was added in _'\1\.._ I V
`Hioii 2.25 to .\;Ll}'![,3t)TI extelided t‘h;Ir;1t‘ter Sets. and i-i1.lI'lCIi(')l] -415] I {EX I"'.(‘.}.
`
`.N'|.lL'e'c:~_' 1
`For those f‘L1Iietioii.~.' that are t'onip;1rable to Ct’.-‘M fl1l]L'1.'iILm.‘s (HIIH through 2-4! I).
`codes are typie;1Hy returned in register A |.. For those tuiietiome that were added In .\'i\-I -
`.‘iiUI‘l 2.H.1nd above. the carry Hug is t‘1e.ired to iiidiente ?x'UI;'L'I.‘N.~i or set to indieme tiailure. .2
`latter L'd5L‘ .1 more specific error (‘ode is ;]].*s'0 returned in register AX.
`
`——""'
`
`3“ D“
`H
`,,
`.
`'
`I
`
`'
`3
`
`3
`4
`_
`3
`fl:
`
`_T
`
`>5
`
`9
`U.-‘\
`
`on
`tit‘
`'
`“D
`
`[j[—j
`_
`mi
`W
`H
`
`13
`I}
`H
`
`H
`i
`If’
`IT
`
`2
`4.
`'
`"‘
`rt
`
`_
`
`-.
`
`"
`
`I
`
`1
`1 ‘
`“
`3
`
`H
`_
`7
`P
`—
`
`3“
`u
`,H
`
`,1
`H
`:3
`1"‘
`
`_
`_
`_
`
`«»i;‘.._. I‘. “_,l.,., __
`,\ -_ _.\ er -H,- W;
`H: t‘h:\'v. !'.'.zI:'.‘r_~
`i’ = tile \'l'JT‘.[.'|.‘.:
`-."I
`H 'h.'.iidl.«.-
`
`274
`
`.-Irfirrtizred .-1 i5—t'.')(.)5
`
`
`
`
`
`
`
`I-iex Dee
`
`Function name
`
`Input
`WP‘?
`
`'
`
`-
`M I
`Vefi
`
`II
`
`I
`5 I
`I] B I
`I] E I
`‘ B I
`II B I
`U 5 '
`[I 3 I
`u 3 '
`H B
`H E
`I] E I
`U I
`II I
`H I
`‘I I
`II I
`B .
`9 I
`[I
`I
`I
`I
`
`18
`19
`IA
`lll
`IC
`1]")
`IE
`ll‘
`EU
`2!
`22
`23
`31
`J
`2f:
`2?’
`28
`2‘)
`2A
`EB
`2C
`2l)
`BE
`21-"
`JEJ
`3]
`32
`3.":
`H
`35
`3:’:
`3?
`38
`
`24
`25
`21':
`2'!"
`28
`2*)
`30
`31
`32
`5;’:
`34
`35
`_’»(:
`37
`38
`3‘)
`‘H1
`4]
`‘'12
`43
`44
`45
`46
`47
`48
`4'4
`50
`5|
`‘:2
`5"’;
`34
`55
`56
`
`Reserved
`(Set default disk drive
`Set disk rr:m5f'L-r area address
`(jet ;1l|m'.3.riuIi iiiforln.-man fhr defiiult drive
`Get allocation iriforination for specified drive
`Reserved
`Reserved
`Reserved
`R{‘SL‘l'\»"L‘('l
`Random read
`Random write
`Get file size
`Set random record nilniber
`Set interrupt vertor
`Create pmgrani scgniciit prefix
`Random block read
`Random block write
`l’:Ir5L‘ [’lll.‘.ll;Il1ll‘
`(let system: (late
`Set r«;ys;te111 date
`Get system time
`Set systcin time
`Set verify flag
`(let disk transfer area address
`(Set MS-DOS \.-'L’!$lOl1Ill1I'I'|l)t_‘I'
`Terminate and stay resident
`Reserved
`(let or set Crrl—Break flag
`Reserveel
`Gt‘! irirerrupt vector
`Get ficc disk space
`Reserved
`Get or set country
`
`D
`
`F
`F
`F
`F
`
`F
`F
`
`D
`
`I
`
`____--
`I-[ex D,
`
`
`5'.‘
`39
`-33.
`3A
`59
`3}}
`5..
`3(_‘
`6}
`3])
`02
`3E
`(,3
`3]:
`{,4
`44}
`(,5
`41
`6,5
`42
`57
`43
`(,5
`44
`(,9
`45
`‘PH
`46
`71
`47
`:3
`48
`73
`49
`"4
`4A
`7:,
`43
`j-'(,
`4('_'
`7-
`413
`-:3
`4};
`79
`4]-'
`3;,
`5(}
`81
`5]
`83
`52
`83
`53
`34
`54
`85
`55
`35
`55
`3-
`57
`33
`58
`gr)
`59
`—-————__
`
`275
`
`_='l:1’r’:m(:*d M$—DO.S
`
`
`
`
`
`
`
`Input
`1'.)-‘pl:
`
`.-*1
`
`H
`
`Hex Dc:
`
`Fum: Lian name
`
`5.-‘&
`
`311
`
`:3-L
`
`.'-?-U
`
`5|‘.
`
`if:
`
`{:4 I
`
`{:1
`
`-1:3
`
`‘M
`
`‘JE
`
`‘J2
`
`"J.-‘:
`
`‘J4
`
`'13
`
`WI
`
`"I"
`
`'i'H
`
`{Ian-.:Lc tn.-I1'.pnrar~_.' rilu
`
`{'ru.-at-: |n.'u- r':]L-
`
`Fiwnrd |nckI1I3.:
`
`RING-:':"|.'|'Ii|.
`
`C51‘:
`
`I1I.in.'|1iIIL'
`
`I1-.llZ'l!IL"|."lE|lEl[{'1 :.<.'I'.1Ip
`
`F1.-.x'Ig,_.*_r1 |1l:7:'I1Trx'
`
`HL"\.|.'F'\'-:"L‘|
`
`|'!.L'H.|.'F'\'|:'|.‘i
`
`iii-r.'[ ;'ru!.§r.uI]1 \L'!.'_llE'l1'lEll
`
`[12|L'|-|.K :Ln.1;§rL'~.*>
`
`Vtfh
`
`~
`
`; Q
`
`M5-— '|
`
`,- I
`
`1 I
`
`; U
`
`; '
`
`; .
`
`I
`
`; '
`
`; I
`
`; I
`
`
`
`HP,‘
`
`u_.aL
`
`.-_.H
`
`“L-
`
`:
`
`L‘-":'-1r.:.r.~:
`
`3
`
`J’
`
`5
`
`‘r
`
`I
`
`4
`
`"I
`
`‘J
`
`M
`
`'21‘?
`
`[wt in.-aai lwtu: ml‘-Ir‘
`
`g 3
`
`‘MN-I 2: I‘: 1 :5 r1II|'.'
`
`int EU I {.13}
`_
`I-uIIrtmI1.'~'. In-'
`
`(‘];1:~."_~'.
`
`Hunt
`
`Jh-r
`
`F|.II1CtiIJI'l nzmm
`
`Input
`I3-'p1.'
`
`_ x
`- -.
`
`.I"r.~_L1.I
`:3
`J]
`
`.'rrl .':'H.-IIll..'I'.':|.'.'
`II
`-1”
`
`.
`
`-LL.
`
`.-‘rm
`
`.
`
`h'rI'.I11'..I::.'
`IL":
`lr'l':1l-.7llL'
`.
`T;-I'I11'II.in.'u'1T|'.
`
`.lI'l'1.! *-|!J'H.'
`
`lL'*-lI.|L'l'.[
`_
`|'I.'|Z|.?I|'I|t.'II;iL'
`
`f.'.|'.-..'r.-.': .'.'r .-'::.--.-.-r
`I
`l
`.1
`3
`
`I’:
`_
`
`H
`
`I":
`_
`
`H
`
`_
`
`__
`
`irlpxlt u1‘.|L:.';h-.1
`|'.I|I.I:.Jr.lc:
`.-*:.LI~.:|.u:r~_.'I!I|'.-L17
`
`[-‘IL?
`
`Hi!’-:,"I.,'E x_':‘I.*1§1‘I:.I'
`._
`Unh.‘.L':n|L|a.Ir.n€L'rII1p'.Ir'.~.'Ir|1::LL1n'|Ln
`{I|1.ar.n u'r Input wlrhv-I11 rrlm
`
`l1_»|'-.'
`"K-»_':.'lI‘-I'1E1IIl
`."'. 4 .-"'I."‘:-'3. “:7 \|r'.r'!.'_
`I
`J = -.1rI1.1.- :1uII':|*«.-.'
`.
`.
`I‘
`III-.'I-.II:lrI-I TIIIIIL
`|
`!1.IIId'.c
`
`l
`
`'
`
`I .
`
`I
`I
`
`‘
`
`I
`I
`
`“'
`
`“
`
`F1-.-»':-'-w.-r.-
`Hf)
`1 "
`
`I
`
`J
`
`t
`I ’
`[H
`J L -'
`
`_‘E
`
`3-“
`
`:1
`1
`._'.‘&
`.-
`:3.
`
`4..-.
`
`S4
`
`H";
`'34
`R)‘
`3H
`'— : —
`‘L"l" '}"""3-'- ""
`-4-
`H
`1_I
`
`If
`'-
`H
`
`*
`1"}
`"'
`3':
`';.:
`
`H-
`HI
`, 1
`'-
`
`'1
`I"
`-'u.
`
`1
`
`H
`|r.
`
`1
`" 7.
`
`_:J *1,
`_
`J1‘
`_ _
`
`275
`
`.'1IJll'-:i'?n'I.'lI-ll
`
`.'l.L\'
`
`.lrJ'5’-H: