8XC196NP, 80C196NU USER’S MANUAL
iv
CHAPTER 3
ADVANCED MATH FEATURES
3.1 ENHANCED MULTIPLICATION INSTRUCTIONS........................................................ 3-1
3.2 OPERATING MODES.................................................................................................... 3-2
3.2.1 Saturation Mode ........................................................................................................3-2
3.2.2 Fractional Mode ........................................................................................................3-3
3.3 ACCUMULATOR REGISTER (ACC_0
x
)....................................................................... 3-4
3.4 ACCUMULATOR CONTROL AND STATUS REGISTER (ACC_STAT) ....................... 3-5
CHAPTER 4
PROGRAMMING CONSIDERATIONS
4.1 OVERVIEW OF THE INSTRUCTION SET.................................................................... 4-1
4.1.1 BIT Operands ............................................................................................................4-2
4.1.2 BYTE Operands ........................................................................................................4-2
4.1.3 SHORT-INTEGER Operands ....................................................................................4-2
4.1.4 WORD Operands ......................................................................................................4-3
4.1.5 INTEGER Operands .................................................................................................4-3
4.1.6 DOUBLE-WORD Operands ......................................................................................4-3
4.1.7 LONG-INTEGER Operands ......................................................................................4-4
4.1.8 QUAD-WORD Operands ..........................................................................................4-4
4.1.9 Converting Operands ................................................................................................4-4
4.1.10 Conditional Jumps ....................................................................................................4-4
4.1.11 Floating Point Operations .........................................................................................4-5
4.1.12 Extended Instructions ...............................................................................................4-5
4.2 ADDRESSING MODES................................................................................................. 4-6
4.2.1 Direct Addressing ......................................................................................................4-7
4.2.2 Immediate Addressing ..............................................................................................4-7
4.2.3 Indirect Addressing ...................................................................................................4-7
4.2.3.1 Extended Indirect Addressing ..............................................................................4-8
4.2.3.2 Indirect Addressing with Autoincrement ...............................................................4-8
4.2.3.3 Extended Indirect Addressing with Autoincrement ...............................................4-8
4.2.3.4 Indirect Addressing with the Stack Pointer ...........................................................4-9
4.2.4 Indexed Addressing ..................................................................................................4-9
4.2.4.1 Short-indexed Addressing ....................................................................................4-9
4.2.4.2 Long-indexed Addressing ....................................................................................4-9
4.2.4.3 Extended Indexed Addressing ...........................................................................4-10
4.2.4.4 Zero-indexed Addressing ...................................................................................4-10
4.2.4.5 Extended Zero-indexed Addressing ...................................................................4-10
4.3 ASSEMBLY LANGUAGE ADDRESSING MODE SELECTIONS................................ 4-11
4.3.1 Direct Addressing ....................................................................................................4-11
4.3.2 Indexed Addressing ................................................................................................4-11
4.3.3 Extended Addressing ..............................................................................................4-11
4.4 DESIGN CONSIDERATIONS FOR 1-MBYTE DEVICES............................................ 4-11
4.5 SOFTWARE STANDARDS AND CONVENTIONS ..................................................... 4-11