Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Magic number (programming)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== In interfaces {{anchor|Magic numbers in interfaces}} === Magic numbers are common in [[API function]]s and [[interface (computing)|interface]]s across many [[operating system]]s, including [[DOS]], [[Windows]] and [[NetWare]]: ;Examples * [[IBM PC]]-compatible [[BIOS]]es use magic values <code>0000</code> and <code>1234</code> to decide if the system should count up memory or not on reboot, thereby performing a cold or a warm boot. Theses values are also used by [[EMM386]] memory managers intercepting boot requests.<ref name="Paul_2002_MAGIC"/> BIOSes also use magic values <code>55 AA</code> to determine if a disk is bootable.<ref>{{Cite web |url=http://neosmart.net/wiki/mbr-boot-process/ |title=The BIOS/MBR Boot Process |date=2015-01-25 |website=NeoSmart Knowledgebase |language=en-US |access-date=2019-02-03 |archive-url=https://web.archive.org/web/20230326024702/https://neosmart.net/wiki/mbr-boot-process/ |archive-date=26 March 2023 |url-status=live }}</ref> * The [[MS-DOS]] disk cache [[SMARTDRV]] (codenamed "Bambi") uses magic values BABE and EBAB in API functions.<ref name="Paul_2002_MAGIC"/> * Many [[DR-DOS]], [[Novell DOS]] and [[OpenDOS]] drivers developed in the former ''European Development Centre'' in the UK use the value 0EDC as magic token when invoking or providing additional functionality sitting on top of the (emulated) standard DOS functions, NWCACHE being one example.<ref name="Paul_2002_MAGIC"/>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)