Quyida keltirilgan ifoda uchun Assembler tilida dastur tuzing
Variant raqami 2abc-a
Dastur kodi:
program Project2;
{$APPTYPE CONSOLE}
uses
SysUtils;
var a,b,c:Integer;
begin
read (a,b);
asm
mov eax,2
mul a
mov a,eax
mov ebx,b
mov b,eax
mov c,ebx
sub eax,c
mov a,eax
end;
writeln(c);
end.
Bundan so’ng, quyidagi buyruqni kiritamiz:
View -> Debug views -> CPU
Bu bizga kompyuter tilida buyruqlarning qanday aks etishini ko’rsatadi:
Do'stlaringiz bilan baham: |