home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Falcon 030 Power 2
/
F030_POWER2.iso
/
ST_STE
/
MAGS
/
ICTARI09.ARJ
/
ictari.09
/
ASSEMBLY
/
COOKFIND
/
G_COOKIE.DOC
< prev
next >
Wrap
Text File
|
1994-04-14
|
1KB
|
27 lines
SUB-ROUTINE NAME Get_cookie
BRIEF DESCRIPTION Search cookie jar (if it exists) for name in d0.l
FILENAME G_COOKIE
OTHER RESOURCES None
LANGUAGE Assembler (Devpac)
AUTHOR Simon.H.Rigby - aka PoshPaws - aka Si(gh)
ENTRY PARAMETERS D0 = Cookie Name (e.g. #"_SND")
EXIT PARAMETERS D0 = 0 if successful, -1 if not
D1 = Value of cookie (or 0.l if not found)
DETAILS -
Searches the cookie jar (if it exists) for the four letter name
given in d0.l. If it finds it, it returns the value of that cookie in d1.l,
otherwise it returns -1 in d0 and zero in d1.
See Cookie.txt for more information on cookies and known values.
Example - Library
move.l #"_SND",d0
bsr Get_cookie
tst.w d0 ;0 if O.K.
bne cookie_fail
...
... ;cookie value in d1.l
...
cookie_fail ;default to basics - no cookie found