?? sushu.asm
字號:
include irvine32.inc
.data
A byte "this is a sushu.",0
B byte "this is not a sushu.",0
D byte "please input a number:",0
.code
main proc
l3:
mov edx,offset D
call writestring
call crlf
call readint
mov ecx,eax
cmp eax,2
je l1
cmp eax,-1
je l2
mov edx,0
mov bx,2
l4:
idiv bx
cmp dx,0
je l5
inc bx
mov ax,bx
cwd
mov ebx,eax
mov eax,ecx
cmp ebx,eax
jb l4
jge l1
l5:
mov edx,offset B
call writestring
mov edx,0
call crlf
jmp l3
l1:
mov edx,offset A
call writestring
l2:
exit
main endp
end main
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -