home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / gendoc / upd70116.v30 < prev    next >
Encoding:
Text File  |  1985-09-15  |  3.3 KB  |  99 lines

  1. ESKAY    9/14/85
  2.  
  3. What a name for a file, you my think...
  4.  
  5.  
  6. This is a brief rundown of the NEC uPD70116, also known as the V30.
  7. To my knowledge, most of this also applies to the V20.
  8.  
  9.  
  10. The V30 is a 16-bit microprocessor in a 40-pin package with the same
  11. pinout as Intel's 8086.  I see it basically as an enhanced 8086 with
  12. extended features, but it may also be considered a stripped-down
  13. 80186 with extended features.
  14.  
  15. The V30's mnemonics are significantly different from Intel's, this is
  16. probably due to legal considerations.  We users shouldn't get hung up
  17. on this and simply use Intel's mnemonics...
  18.  
  19.  
  20. The V30 has three types of instructions:
  21.  
  22. - 8086-compatible instruction set
  23. - enhanced instructions (80186 compatible)
  24. - unique extended instructions.
  25.  
  26. Note: the data sheet says nothing about 80186 but I found the opcodes for
  27.       "enhanced" instructions to be identical to those found in the 80186.
  28.  
  29. Since everyone knows the 8086 instructions, let's look at the "enhanced"
  30. instructions, which are really the 80186 extensions in disguise:
  31.  
  32.  
  33. NEC mnemonics    INTEL mnemonics    Example        Function
  34.  
  35. PUSH imm    PUSH imm    PUSH 77H    Push an immediate value
  36. PUSH R        PUSHA        PUSHA        Push 8 general-purpose regs
  37. POP R        POPA        POPA        Pop 8 general-purpose regs
  38. MUL imm        MUL imm        MUL AX,7    Multiply reg/mem by immediate
  39. all shift/rotate instructions
  40. with immediate arguments    SHR AX,3
  41. CHKIND        BOUND        BOUND        Check array boundary
  42. INM        INS        INS BYTE    Input string from port DX
  43.                         to [DI]
  44. OUTM        OUTS        OUTS BYTE    Output string from [SI]
  45.                         to port DX
  46. PREPARE        ENTER        ENTER 28,3    Allocate stack frame for
  47.                         procedure
  48. DISPOSE        LEAVE        LEAVE        Deallocate stack frame when
  49.                         leaving procedure
  50.  
  51. The V30 has the following unique instructions:
  52.  
  53. INS        Insert bit field
  54. EXT        Extract bit field
  55. ADD4S        Add packed BCD strings
  56. SUB4S        Subtract packed BCD strings
  57. CMP4S        Compare packed BCD strings
  58. ROL4        Rotates 1 BCD digit left through AL low nybble
  59. ROR4        Rotates 1 BCD digit right through AL low nybble
  60. TEST1        Test a specified bit and set/reset Z flag
  61. NOT1        Invert a specified bit
  62. CLR1        Clear a specified bit
  63. SET1        Set a secified bit
  64. REPC        Repeat until CY clear
  65. REPNC        Repeat until CY set
  66. FPO2        Additional floating point processor call
  67.  
  68.  
  69. Additionally, the V30 has a mode bit (bit 15 of the flags register)
  70. which determines whether the chip operates in "native" mode or in
  71. "8080 emulation" mode. The following instructions control the mode bit:
  72.  
  73. BRKEM        break for emulation
  74. RETEM        return from emulation
  75. CALLN        call native routine
  76. RETI        return from interrupt/native routine
  77.  
  78. In 8080 emulation mode, the registers are used as follows:
  79. A=AL, B=CH, C=CL, D=DH, E=DL, H=BH, L=BL, SP=BP
  80.  
  81.  
  82.  
  83.  
  84. Due to hardware differences between the Intel 8086 and the V30, the
  85. V30 executes most instructions faster than the 8086. Thus, even if none of
  86. the advanced features are used, replacing your existing 8086 with a V30 should
  87. speed your system up.
  88.  
  89. As of last week, the V30 was not yet available to the general public.
  90. The V20, however, (the 8088 replacement) is available and is being offered
  91. for sale by some local distributors.
  92.  
  93. For more information, contact your local NEC support office or NEC parts
  94. dealer (in Dallas, go by "Off the shelf components" at 11441 Stemmons Fwy
  95. [247-0052] and ask for a spec sheet).
  96.  
  97. Both the V20 and V30 come in 5MHz and 8MHz clock speeds.  As soon as the
  98. 8MHz V30 becomes available, I'll run some benchmarks on it.
  99.