x:=StrToInt(Edit1.Caption); y:=StrToInt(Edit2.Caption); z:=StrToInt(Edit3.Caption); {$asmmode intel} asm xor edx,edx mov eax,y mov ecx,z div ecx mov Test,eax mov eax,x mov ecx,Test div ecx mov Test,eax end; ShowMessage(IntToStr(Test)); There is such a code, Stop the program on "div ecx". How do I understand the problem in "mov Test, eax" How to fix the error?
edxbefore the second division operation. I advise you first to write code on pascal, and then see how it will be transformed into an assembler of Delphi itself (View - Debug Windows - CPU Windows - Disassembly). - zed Nov.