我可以得到汇编代码的屏幕截图吗?

发布于 2025-01-11 21:36:57 字数 1747 浏览 0 评论 0原文

我知道这超出了社区的范围,但我没有其他地方可以求助。在运行以下程序进行作业后,我需要 Visual Studio 的屏幕截图。我的电脑坏了,几个小时后就到期了。有两个 MASM 程序,它们都是交互式的,任何逻辑变量都可以。您可以将图像链接发送至:[email protected](附件将不起作用)如果问题已结束。提前致谢

INCLUDE Irvine32.inc

 .data
fname BYTE 16 Dup(?)
age dword  ?
np BYTE 'Enter Name:',0dh, 0ah,0
ap BYTE 'Enter Age:',0dh, 0ah,0
yn BYTE 'Your name is ',0
yy BYTE ' born in ',0
cy dword 2022
 dob dword ?
.code
main PROC
mov edx, offset np
call WriteString

mov edx, offset fn
mov ecx, Sizeof fn
call readstring

call Crlf
mov edx, offset ap
call WriteString

call readInt
mov  age, eax

mov eax, cy
sub eax, age
mov yob, eax

mov edx, offset yn
call WriteString

mov edx, offset fn
call WriteString

mov edx, offset yy
 call WriteString

mov eax, dob
call WriteDec

call Crlf


call WaitMsg

 exit
main ENDP
 END main












INCLUDE Irvine32.inc

.data
two dword 2 ; store two
three dword 3 ; store three
c dword 1 ; store 1
n dword  ? ; n variable
answer dword  ? ; answer variable
a1 dword ? ; store 2n^2
a2 dword ? ; store 3n
pr BYTE 'Enter n:',0dh, 0ah,0     ; n prompt
eq BYTE 'ans= ',0 ; ans

.code

n2n PROC ; 2*n*n
mov eax, two
mov ecx, n
mul ecx
mov ecx,n
mul ecx
mov a1,eax
ret
n2n ENDP

n3 PROC   ; 3n
mov eax, three
mov ecx, n
mul ecx
mov a2,eax
ret
3n ENDP

main PROC
mov edx, offset pr
call WriteString ; Ask user for n

call readInt
mov  n, eax ; Store user input in n

call n2n ; call procedure n2n
call 3n ; call procedure n3

mov ebx, a1
add ebx, a2
add ebx, c
mov answer, ebx ; store result in answer

mov edx, offset eq
call WriteString

mov eax, answer
call WriteDec
call WaitMsg

 exit
main ENDP
END main

I know this is outside the scope of the community but I had nowhere else to turn to. I need screenshots of Visual Studio after running the following programs for an assignment. My PC died and it is due in a few hours. There are two MASM programs and they are both interactive, any logical variables will do. You can send the link of the images to:[email protected] (attachments will not work) if the question is closed. Thanks in advance

INCLUDE Irvine32.inc

 .data
fname BYTE 16 Dup(?)
age dword  ?
np BYTE 'Enter Name:',0dh, 0ah,0
ap BYTE 'Enter Age:',0dh, 0ah,0
yn BYTE 'Your name is ',0
yy BYTE ' born in ',0
cy dword 2022
 dob dword ?
.code
main PROC
mov edx, offset np
call WriteString

mov edx, offset fn
mov ecx, Sizeof fn
call readstring

call Crlf
mov edx, offset ap
call WriteString

call readInt
mov  age, eax

mov eax, cy
sub eax, age
mov yob, eax

mov edx, offset yn
call WriteString

mov edx, offset fn
call WriteString

mov edx, offset yy
 call WriteString

mov eax, dob
call WriteDec

call Crlf


call WaitMsg

 exit
main ENDP
 END main












INCLUDE Irvine32.inc

.data
two dword 2 ; store two
three dword 3 ; store three
c dword 1 ; store 1
n dword  ? ; n variable
answer dword  ? ; answer variable
a1 dword ? ; store 2n^2
a2 dword ? ; store 3n
pr BYTE 'Enter n:',0dh, 0ah,0     ; n prompt
eq BYTE 'ans= ',0 ; ans

.code

n2n PROC ; 2*n*n
mov eax, two
mov ecx, n
mul ecx
mov ecx,n
mul ecx
mov a1,eax
ret
n2n ENDP

n3 PROC   ; 3n
mov eax, three
mov ecx, n
mul ecx
mov a2,eax
ret
3n ENDP

main PROC
mov edx, offset pr
call WriteString ; Ask user for n

call readInt
mov  n, eax ; Store user input in n

call n2n ; call procedure n2n
call 3n ; call procedure n3

mov ebx, a1
add ebx, a2
add ebx, c
mov answer, ebx ; store result in answer

mov edx, offset eq
call WriteString

mov eax, answer
call WriteDec
call WaitMsg

 exit
main ENDP
END main

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文