Undefined instructions in 8-bit processors (was Re: [CCTECH] Interesting tidbit on 6502)

From: Ethan Dicks <erd_6502_at_yahoo.com>
Date: Fri Jun 7 10:21:48 2002

--- Ben Franchuk <bfranchuk_at_jetnet.ab.ca> wrote:
> 8 bit cpu's... most undefined instructions
> are mostly harmess.

There is one undefined instruction on the 1802 - $68 IIRC. It's in
the group of I/O instructions, but there are only 7 defined ports (with
the N-lines indicating 1-7 at the appropriate cycle). The later,
extended versions of the 1802 used $68 as an opcode extender.

The reason for bringing it up is that I remember playing on the Elf
20 years ago, and noticing that if I accidentally executed a $68, the
CPU would go berserk and whomp on random patches of memory. If it
happened, I was guaranteed to have to retoggle the program in from
scratch.

-ethan


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Received on Fri Jun 07 2002 - 10:21:48 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:35:04 BST