Hades logoHades applet banner
Intel MCS4 (i4004) increment in a loop

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

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
        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:

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams-www.informatik.uni-hamburg.de/applets/hades/webdemos/80-mcs4/jmp/jmp_inc.html