Question
Can someone please help me with this assembly program Help with Assembly For this programming assignment you will be writing an assembly program that will
Can someone please help me with this assembly program
Help with Assembly
For this programming assignment you will be writing an assembly program that will use nested looping to write all of the seconds in a week one-by-one to a location in memory. To start with, look at the following code from the date_time.cpp C++ program:
; Program template
.386
.model flat,stdcall
.stack 4096
ExitProcess proto,dwExitCode:dword
DAYS = 7 ; constant representing the number of days in a week
HOURS = 24 ; constant representing the number of hours in a day
MINUTES = 60 ; constant representing the number of minutes in an hour
SECONDS = 60 ; constant representing the number of seconds in a minute
.data
date_time DWORD ? ; byte 0000 stores the DAY, byte 0001 stores the HOUR, byte 0002 stores the MINUTE, and byte 0003 stores the SECOND
num_of_iters DWORD 0 ; counts the total number of iterations
day BYTE DAYS ; used to restore cl to the current day value
hour BYTE HOURS ; used to restore cl to the current hour value
minute BYTE MINUTES ; used to restore cl to the current minute value
.code
main proc
; IMPLEMENT THIS
; IMPLEMENT THIS
; IMPLEMENT THIS
; IMPLEMENT THIS
; IMPLEMENT THIS
invoke ExitProcess,0
main endp
end main
Thanks in advance
#includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started