Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

; 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

#include using namespace std;l int main() int count 0; for(int day 0 day using namespace std;l int main() int count 0; for(int day 0 day

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago