📄 7-13.asm
字号:
TITLE 7-13
include allyssa32.inc
.data
str1 byte "Please input the first 64-bit in hex:first - second",0dh,0ah,0
string byte "remener :use enter to tell high 32-bit from low 32-bit",0dh,0ah,0
examp1 byte "eg: 1234ecdf",0dh,0ah,0
examp2 byte " 03ab2543",0dh,0ah,0
str2 byte "Please input the second 64-bit in hex:first - second",0dh,0ah,0
str3 byte "The result is :",0dh,0ah,0
jia1 sdword 2 dup(0)
jia2 sdword 2 dup(0)
.code
main proc
mov edx,offset str1
call writestring
mov edx,offset string
call writestring
mov edx,offset examp1
call writestring
mov edx,offset examp2
call writestring
mov esi,0
mov ecx,2
push ecx
push esi
L1:
call readhex
mov jia1[esi],eax
add esi,4
loop L1
pop esi
pop ecx
mov edx,offset str2
call writestring
mov edi,0
push edi
L2:
call readhex
mov jia2[edi],eax
add edi,4
loop L2
pop edi
mov edx,offset str3
call writestring
mov eax,jia1[esi+4]
mov ebx,jia1[esi]
clc
sub eax,jia2[edi+4]
sbb ebx,jia2[edi]
push eax
mov eax,ebx
call writehex
pop eax
call writehex
exit
main endp
end main
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -