Halt and Catch Fire

Halt and Catch Fire

Halt and Catch Fire, known by the mnemonic HCF, was originally a fictitious computer machine code instruction claimed to be under development at IBM for use in their System/360 computers, along with many other amusing instructions such as "Execute Operator".

In modern practice, HCF denotes an undocumented machine code instruction with unusual side-effects, included in the processor for test purposes. The old "Halt and Catch Fire" instruction and HCF mnemonic were appropriated by users who discovered these instructions as a humorous way of expressing that the unintended execution of such an instruction causes the system to fail to perform its normal functions, while nevertheless appearing quite busy. The expression "catch fire" is strictly metaphorical.

One apocryphal story goes back to the late 1960's, when computers used magnetic core memory. The story goes that in order to speed up the core memory on their next model the engineers increased the read/write currents in the very fine wires that were threaded through the cores. This worked fine when the computer was executing normal programs, since memory accesses were spread throughout memory. However, the HALT instruction was implemented as a "Jump to self". This meant that the same core memory location was repeatedly accessed, and the very fine wires became so hot that they started to smoke - hence "Halt and Catch Fire".

A real life HCF

The Motorola 6800 microprocessor was the first for which an HCF opcode became widely known. The origin of the 6800 HCF opcode (0xDD or 0xD9) came from an article written by Gerry Wheeler (1952–2006) in the December 1977 issue of "BYTE" magazine on undocumented opcodes.cite journal | last = Wheeler | first = Gerry | title = Undocumented M6800 Instructions | journal = BYTE | volume =2 | issue =12 | pages = 46–47 | date = December 1977] The instruction makes the processor enter a mode intended for manufacturing testing, in which it continuously performs memory read cycles from successive addresses, with no intervening instruction fetches. Effectively the address bus becomes a counter, allowing the operation of all address lines to be quickly verified. Once the processor has entered this test mode, it is not responsive to interrupts, so normal operation can only be restored by a reset.

Potential damage

There are apocryphal reports of damage resulting from the use of such instructions, but there is no documented evidence of such an instruction actually causing damage to a computer. Obviously special instructions designed into a processor for use in manufacturing tests would not be designed in such a manner as to cause damage to that processor.

However, in an embedded system the unintended execution of an HCF instruction could easily cause problems in the system being controlled. For instance, the system could fail to stop a machine when the closure of a limit switch occurs. This problem is not specific to an HCF instruction, and could occur if the software crashes for any reason. Properly designed systems have hardware interlocks and watchdog timers to prevent such occurrences or limit their consequences.

Additionally, there are cases of hardware suffering damage due to manipulation by program code. See Killer poke for examples.

pecific processors with HCF opcode

*6502, and in general the NMOS 650x and 651x series processors [cite web
url=http://linux.cis.monroeccc.edu/~paulrsm/6502/AAL/AAL8103.TXT
title=Apple Assembly Line Volume 1 Issue 6
accessdate=2008-05-09
]
*6800
*6809fact|date=February 2008
*MIPS-X: processor supported by the Defense Advanced Research Projects Agency, the Programmer's Manual describes an HSC (Halt and Spontaneously Combust) instruction in -NSA version of the processor [ftp://reports.stanford.edu/pub/cstr/reports/csl/tr/86/289/CSL-TR-86-289.pdf]

ee also

*Killer poke
*Cyrix coma bug
*SEX
*f00f
*Printer on fire

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Halt and catch fire — Halt and Catch Fire, conocida por el nemónico HCF, fue en origen una instrucción ficticia en código máquina que se decía estaba siendo desarrollada por IBM para su uso en sus computadores System/360, junto con muchas otras instrucciones… …   Wikipedia Español

  • Halt and Catch Fire — (« arrêter et prendre feu »), de mnémonique HCF, était à l origine une instruction de langage machine informatique prétendument en développement chez IBM pour leurs ordinateurs System/360. De nos jours, HCF denote une instruction non… …   Wikipédia en Français

  • Lp0 on fire — (aka Printer on Fire) is a semi obsolete error message still generated on some Unix/Linux operating systems in response to certain types of printer errors. lp0 is the Unix device handle for the first line printer, but the error can be displayed… …   Wikipedia

  • Agriculture and Food Supplies — ▪ 2007 Introduction Bird flu reached Europe and Africa, and concerns over BSE continued to disrupt trade in beef. An international vault for seeds was under construction on an Arctic island. Stocks of important food fish species were reported… …   Universalium

  • List of villains and monsters in Demashita! Powerpuff Girls Z — This article contains information on the villains and monsters in the anime Demashita! Powerpuff Girls Z, produced by Cartoon Network, Toei Animation, and Aniplex.Like the Powerpuff Girls, most of the villains were normal everyday… …   Wikipedia

  • HACF — Halt And Catch Fire eine IBM 360/63 tat dies einmal am •(aus The REAL Canonical List of Forgotten Assembly Language Commands : ) …   Acronyms

  • HACF — Halt And Catch Fire eine IBM 360/63 tat dies einmal am [2](aus The REAL Canonical List of Forgotten Assembly Language Commands : ) …   Acronyms von A bis Z

  • Business and Industry Review — ▪ 1999 Introduction Overview        Annual Average Rates of Growth of Manufacturing Output, 1980 97, Table Pattern of Output, 1994 97, Table Index Numbers of Production, Employment, and Productivity in Manufacturing Industries, Table (For Annual… …   Universalium

  • Computers and Information Systems — ▪ 2009 Introduction Smartphone: The New Computer.       The market for the smartphone in reality a handheld computer for Web browsing, e mail, music, and video that was integrated with a cellular telephone continued to grow in 2008. According to… …   Universalium

  • Health and Disease — ▪ 2009 Introduction Food and Drug Safety.       In 2008 the contamination of infant formula and related dairy products with melamine in China led to widespread health problems in children, including urinary problems and possible renal tube… …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”