Hades logo    Hades applet banner

TAMS / Java / Hades / applets (print version): contents | previous | next

Intel MCS4 (i4004) increment in a loop

Intel MCS4 (i4004) increment in a loop screenshot

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:

Run the applet | Run the editor (via Webstart)


Impressum | 24.11.06
http://tams-www.informatik.uni-hamburg.de/applets/hades/webdemos/80-mcs4/jmp/jmp_inc_print.html