; Sa se incarce registrul CX cu 3456 registrul DX 67 sa se imparta aceste registre intre ele si citul sa se trimita in memorie la adresa 16h.
.model small
.radix 16
.code
start:
;incarcarea valorilor
	mov CX, 3456
	mov DX, 67
;pregatim registrele pentru impartire
	;AX <- numaratorul
	mov AX,CX
	;BX <- numitorul
	mov BX,DX
	;DX <- 0, ca mai apoi sa obtinem in DX restul impartiri
	mov DX,0
;impartirea: catul -> AX, restul ->DX
	div BX
;trimitem catul la adresa 16h
	mov DS:[16],AX

term: jmp term
end start

; 1)
;  cs:0000 B95634         mov    cx,3456         ax 0000   Śc=0Ś
;  cs:0003 BA6700         mov    dx,0067      Ś  bx 0000   Śz=0Ś
;  cs:0006 8BC1           mov    ax,cx        -  cx 3456   Śs=0Ś
;  cs:0008 8BDA           mov    bx,dx        -  dx 0067   Śo=0Ś
;  cs:000A BA0000         mov    dx,0000      -  si 0000   Śp=0Ś
;  cs:000D F7F3           div    bx           -  di 0000   Śa=0Ś
;  cs:000F A31600         mov    [0016],ax    -  bp 0000   Śi=1Ś
;  cs:0012 EBFE           jmp    0012         -  sp 0000   Śd=0Ś

; 2)
;  cs:0000 B95634         mov    cx,3456         ax 3456   Śc=0Ś
;  cs:0003 BA6700         mov    dx,0067      Ś  bx 0067   Śz=0Ś
;  cs:0006 8BC1           mov    ax,cx        -  cx 3456   Śs=0Ś
;  cs:0008 8BDA           mov    bx,dx        -  dx 0000   Śo=0Ś
;  cs:000A BA0000         mov    dx,0000      -  si 0000   Śp=0Ś
;  cs:000D F7F3           div    bx           -  di 0000   Śa=0Ś
;  cs:000F A31600         mov    [0016],ax    -  bp 0000   Śi=1Ś
;  cs:0012 EBFE           jmp    0012         -  sp 0000   Śd=0Ś

; 3)
;  cs:0000 B95634         mov    cx,3456         ax 0082   Śc=0Ś
;  cs:0003 BA6700         mov    dx,0067      Ś  bx 0067   Śz=0Ś
;  cs:0006 8BC1           mov    ax,cx        -  cx 3456   Śs=0Ś
;  cs:0008 8BDA           mov    bx,dx        -  dx 0008   Śo=0Ś
;  cs:000A BA0000         mov    dx,0000      -  si 0000   Śp=0Ś
;  cs:000D F7F3           div    bx           -  di 0000   Śa=0Ś
;  cs:000F A31600         mov    [0016],ax    -  bp 0000   Śi=1Ś
;  cs:0012 EBFE           jmp    0012         -  sp 0000   Śd=0Ś
;+ ---------------------------------------------------------------------------------
;  ds:0010 D6 1E 80 02 31 19 82 00 ? ? 1 ?    Ś  ss:0002 BA34  Ś
