digplanet beta 1: Athena
Share digplanet:

Agriculture

Applied sciences

Arts

Belief

Business

Chronology

Culture

Education

Environment

Geography

Health

History

Humanities

Language

Law

Life

Mathematics

Nature

People

Politics

Science

Society

Technology

An illegal opcode, also called an undocumented instruction, is an instruction to a CPU that is not mentioned in any official documentation released by the CPU's designer or manufacturer, which nevertheless has an effect. Illegal opcodes were common on older CPUs designed during the 1970s, such as the MOS Technology 6502, Intel 8086, and the Zilog Z80. They exist as a side effect of the wiring of transistors in the CPU, and usually combine functions of the CPU that were not intended to be combined.

While most illegal instructions have useless or even highly undesirable effects (such as crashing the computer), a few might by accident do something that can be useful in certain situations. Such instructions were sometimes exploited in computer games of the 1970s and 1980s to speed up certain time-critical sections. Another common use of them was in the ongoing battle between copy protection implementations and cracking. Here, they were a form of security through obscurity, and their secrecy usually did not last very long.

A danger associated with the use of illegal instructions was that, given the fact that the manufacturer did not guarantee their existence and function, they might disappear or behave differently with any change of the CPU internals or any new revision of the CPU, rendering programs that use them incompatible with the newer revisions. For example, a number of older Apple II games do not work correctly on the newer Apple IIc, because the latter uses a newer CPU revision — 65C02 — that does away with illegal opcodes.

More recent CPUs, such as the 80186, 80286, 68000 and its descendants or the PowerPC processor, usually do not have illegal opcodes. Their manufacturers guarantee that the CPU will behave in a well-defined way when it finds an unknown opcode in the instruction stream: usually, this means triggering a certain exception or fault condition. The operating system's exception or fault handler will then usually terminate the application that caused the fault. Another, less common way of handling illegal instructions is by defining them to do nothing except taking up time and space (equivalent to the CPU's official NOP instruction); this method is used by the TMS9900 and 65C02 processor, among others.

Today, the details of these instructions are mainly of interest for exact emulation of older systems.

See also[edit]

References[edit]


Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/Illegal_opcode — Please support Wikipedia.
This page uses Creative Commons Licensed content from Wikipedia. A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.
45 videos foundNext > 

PSXfin executes illegal opcodes before Sony logo

I just downloaded the SCPH5502.bin and tried it in PSXfin but seems to shoot out r3000 illegal opcodes BEFORE the Sony Logo! Insane! All other BIOS work perf...

Atari 2600 Push V0.03 No Illegal Opcodes 1998 AD

Make a new video now: http://img.atariguide.com/runtime.php?rom=Push+%28V0.03%29+%28No+Illegal+Opcodes%29+%281998%29+%28AD%29 - Atari 2600 Push V0.03 No Ille...

Demo Arigato by SquoQuo

Demo Arigato SquoQuo@SillyVenture 2012 ______ ______ _____ ______ ______ __ _) \\__\ \\_____) (_____// /__// (_ __ )_\ \. ______...

[GameHacking] How to defeat shared Opcodes

How to defeat shard opcodes using Cheat Engine. If you have any queries visit: http://www.darkhook.net/forum.

finding opcodes

how to find opcodes while developing your exploit through Immunity dbg.

Reverse Engineering the MOS 6502 CPU [27C3]

Reverse Engineering the MOS 6502 CPU 3510 transistors in 60 minutes The MOS 6502 CPU, which was designed in 1975 and powered systems like the Apple II, the A...

opcodes

NEW!!! Easiest money you will ever make!! CentSports

http://www.centsports.com/?opcode=100354 Q: What is CentSports? A: CentSports is just one of many places on the Internet where you can place bets on major sp...

CENTSPORTS: WE GIVE YOU MONEY TO BET WITH! FREE

http://www.centsports.com/?opcode=100354 Q: What is CentSports? A: CentSports is just one of many places on the Internet where you can place bets on major sp...

Free legal sports betting/gambling website online!

Hi, this site is really great because i hate, HATE losing money There are tons of different types of bets too, and every sport. http://www.centsports.com/?op...

45 videos foundNext > 

We're sorry, but there's no news about "Illegal opcode" right now.

Loading

Oops, we seem to be having trouble contacting Twitter

Talk About Illegal opcode

You can talk about Illegal opcode with people all over the world in our discussions.

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!