Intel MCS4 (i4004) increment in a loop
Circuit Description
An example of JMP: Increment in a loop on the i4004 microprocessor
based on this assembly source: jmp_inc.asm.
; jmp_inc.asm
; increment R0 in an endless loop
FIM R0R1, 0 ; initialize R0=R1=0
loop:
INC R0 ; increment register R0
JUN loop ; next iteration
This program demonstrates the unconditional jump instruction (JUN).
It first initializes the register pair R0,R1
and then enters and endless loop
which increments R0.
See also:
|