CPU Opcodes for the Intel i4040

Please note: This page only shows the instructions changed or added with the i4040. For the others, see i4004.

Nib 1Nib 2Nib 3Nib 4MnemonicDesc
00000001--HLTHalts the CPU.
00000010--BBSReturn from subroutine and restore memory index.
00000011--LCRMemory bank status is loaded into Acc.
00000100--OR4Perform logical OR on Acc and register 4.
00000101--OR5Perform logical OR on Acc and register 5.
00000110--AN6Perform logical AND on Acc and register 6.
00000111--AN7Perform logical AND on Acc and register 7.
00001000--DB0Select ROM bank 0.
00001001--DB1Select ROM bank 1.
00001010--SB0Select register bank 0.
00001011--SB1Select register bank 1.
00001100--EINEnable interrupt detection.
00001101--DINDisable interrupt detection.
00001110--RPMLoad Acc from 4289-controlled program RAM

The Intel i4040 made many improvements upon it's predecessor. Via switching register banks, you can now access 24 registers. There are now interrupts, so now you can make more kinds of software, and make them faster.