Can someone help me with this problem. We\'re using microsoft visual studios and
ID: 3701472 • Letter: C
Question
Can someone help me with this problem. We're using microsoft visual studios and its from my assembly code language class.
we're following this template in class.
Explanation / Answer
.data
str1 byte "Today I have an assignment."
str2 byte "I just finished my assignment."
timeval:
tv_sec dd 0
tv_usec dd 0
.code
main PROC
; print first string str1
mov dx, str1
mov cx, LENGTHOF str1
mov ah, 9
int 0x21
; sleep for 1 second
mov dw [tv_sec],1
mov dw [tv_usec],0
mov eax, 162
mov ebx, timeval
mov ecx, 0x21
int 0x21
; print second string str1
mov dx, str2
mov cx, LENGTHOF str2
mov ah, 9
int 0x21
INVOKE ExitProcess, 0
main ENDP
END main
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.