Initialize Counter

You might also like

You are on page 1of 1

: Initialize counter START MVI C, 09H BACK: MOV A, M INX H CMP M JC SKIP JZ SKIP MOV D, M

: LXI H, 2200H: Initialize memory pointer : Initialize counter 2 : Get the number : Increment memory pointer : Compare number with next number : If less, don't interchange : If equal, don't interchange

You might also like