size--item---2
f--item---2
item---2
l--item---2
db
=
db
=
l--item---2 - f--item---2 -
1
$
'Widgets',OH
$
,
,..
,. Now build table of bucket pointers:
acme-ptrs
label
dw
dw
dw
near
offset acme--.-name
offset
item_l
offset
item---2
,
,. Now build the bucket header data structure
,
acme-hucket
label
dw
dw
dw
dw
dw
dw
dw
near
OFFFFH ,. This is the only bucket.
OFFFFH
1002H ,. Adding string indexes 1000.. 1002
1000H
offset acme-ptrs ,. address of pointer list
segment acme-ptrs
segment acme--.-name ,. segment of all strings
,
,. Do the function call
to
add bucket.
MOV
BP, V_SYSTEM
,. HP vector 12H
MOV
AH, F_STRJUT_BUCKET
,. function 44H
MOV
01, offset acme-hucket
MOV
ES, segment acme-hucket
PUSH
OS
,. EX-BIOS Destroys OS
INT
HP_ENTRY
,. tnt 6FH for EX-BIOS
POP
OS
F_STL.GET_STRING
(AH
=
46H)
Given an index, this function searches the list of bucket headers for the bucket pointer with the
given index. It returns a pointer to the string.
On Entry:
BP
=
V_SYSTEM (12H)
AH
=
F_STLGET_STRING (46H)
BX
=
String index
System Drivers
307
Need help?
Do you have a question about the Vectra and is the answer not in the manual?