[comp.sys.cbm] Un-doc'ed operations list V2

lncjb@cc.nu.oz.au (12/13/90)

Damn,,, I tested the list I gave a few weeks ago and discovered a few typos
	and bugs. Here is the corrected version,,, Sorry to anyone whose
	machine buggered up when they used the previous list. Hopefully this
	will be the last,,,


Note: ANX: X = A AND X (bitwise AND)
    & AAA-BBB Means operation AAA, followed by BBB

Dual operatiors
===============
Operation   Suggested                 ADDRESSING MODES
	    mnemonic    zz	zz,X	(zz,X)	(zz),Y	zzzz	zzzz,X	zzzz,Y
------------------------------------------------------------------------------
ASL-ORA     ALO		07	17	03	13	0F	1F	1B
ROL-AND     RLA		27	37	23	33	2F	3F	3B
LSR-EOR     LRE		47	57	43	53	4F	5F	5B
ROR-ADC     RAC		67	77	63	73	6F	7F	7B
ANX-STore~  SAX		87     +97			8F	9F
LDX-TXA     LAX		A7     +B7	A3	B3	AF	BF
DEC-CMP	    DCP		C7	D7	C3	D3	CF	DF	DB
INC-SBC     ISC		E7	F7	E3	F3	EF	FF	FB
	+ : Addressing mode zz,Y
	~ : Regs X and A not effected by result.

Immediate mode operations
=========================
Operation		Hex value
---------		---------
AND #nn			0B nn
	    	    or  29 nn
	    	    or  2B nn

AND #nn - LSR A		4B nn

AND #nn - ROR A		6B nn

TXA - AND #nn		8B nn

ANX - SUB #nn		CB nn	   (Note: Subtract without carry)
^^^^^^^^^^^^^^^ Haven't managed to decide what
		this does. A random number generatior?

SBC #nn			EB nn
	     	     or E9 nn

No-Operations
=============
Single byte (classic NOP):	1A 3A 5A 7A DA EA FA		2 cycles
Double 		 (NOP zz):	04 34 44 54 64 74 80 89 F4	3 cycles
Triple:        (NOP zzzz):	0C 1C 3C 5C 7C DC FC		4 cycles

HALTing "Crash operations", Maybe interuptible
==============================================
HLT	02 12 32 42 52 62 72 82 92 B2 C2 D2 E2 F2

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Chris Baird,
Occupation:	Impoverished BSc Undergrad
Temp. address:  LNCJB@cc.nu.oz.au  (AARNet/Internet)

}`oo'{ --- Bye, extremely ugly Dude!
  `'