.386 ; 表示代码中要用到32位的寄存器或相关指令 code segment use16 ; use16表示代码中仍旧使用16位地址而非32位 assume cs:code main: mov edx, 1234567h mov eax, 89ABCDEFh ; edx、eax=123456789ABCDEFh是64位被除数 mov ebx, 10000000h ; ebx是32位除数 div ebx ; 商eax=12345678h, 余数edx=9ABCDEFh mov ah, 4Ch int 21h code ends end main