#start=led_display.exe# .model small data segment num db ? data ends .stack .code lea ax,data mov ds,ax xor ax,ax xor bx,bx out 199,ax ;counter azzerato ciclo: push bx push ax mov ax,3 int 33h pop ax pop cx cmp bx,cx je ciclo cmp bx,1 jne test2 dec ax out 199,ax jmp ciclo test2: cmp bx,2 jne ciclo inc ax out 199,ax jmp ciclo end