Хамелеон vs iphone
.model small
.stack 100h
.186
.data
a db 3
b db 1
c db 2
d db 2
f db ’f= $’
.code
Start: mov ax,@data
mov ds,ax
mov al,a ;al=3
mov ah,b ;ah=1
mov bl,c ;bl=2
mov bh,d ;bh=2
add al,ah ;al=4
mov cl,ah ;cl=4
imul al ;al=16
imul cl ;al=64
imul ax,al,7 ;ax=508
imul dx,bl,5 ;dx=10
idiv ax,dx ;ax=50 , dx=8
push dx ; stack:8
push ax ; stack:8,50
mov al,a ;al=3
mov ah,b ;ah=1
mov bh,d ;bh=2
imul al ;al=9