Introduction to 80 x 86 assembly language, Assembly Language

Assignment Help:

Using the windows32 framework, write a complete 80x86 program for Programming Exercises 4.3
number 3, on pages 130-131 of the textbook.
Follow all coding conventions mentioned in class.  It is expected that your program will be well
documented with comments.  Your program must have a comment block at the top describing the
program purpose, input, and output, along with your name, date, the course number, and section.
To submit your project, use the following instructions:
Open the main project folder (originally windows32, but possibly renamed).
Delete the Debug folder.
Delete the windows32.ncb file.
Select the remaining folder and files. (Control-A will do this.)
With all files highlighted, right-click anywhere in the group and select Send To, then Compressed
(zipped) Folder. This creates a zipped file in your project folder.
Rename the zipped file as lastname.zip (using your last name).
Upload the project to the Assignment link.

the question is listed below:



Suppose that someone has a certain number of coins (pennies, nickels, dimes, quarters, fifty-cent pieces, and dollar coins) and wants to know the total value of the coins, as well as how many coins there are. Write a program to help. Specifically, follow the design below.

prompt for and input the number of pennies;

total := number of pennies;

numberOfCoins := number of pennies;

prompt for and input the number of nickels;

total := total + 5 * number of nickels;

add number of nickels to numberOfCoins;

prompt for and input the number of dimes;

total := total + 10 * number of dimes;

add number of dimes to numberOfCoins;

prompt for and input the number of quarters;

total := total + 25 * number of quarters;

add number of quarters to numberOfCoins;

prompt for and input the number of fifty-cent pieces;

total := total + 50 * number of fifty-cent pieces;

add number of fifty-cent pieces to numberOfCoins;

prompt for and input the number of dollars;

total := total + 100 * number of dollars;

add number of dollars to numberOfCoins;

display "There are", numberOfCoins, "coins worth";

display total div 100, "dollars and", total mod 100, "cents";

Note that you are displaying dollars and cents for the total. Assume that all values will fit in doublewords.


Related Discussions:- Introduction to 80 x 86 assembly language

Not-logical instruction-microprocessor, NOT : Logical Invert: The NOT inst...

NOT : Logical Invert: The NOT instruction complements (inverts) the contents of an a memory location or operand register bit by bit. The instance are as following: Example :

Flag manipulation and processor control instructions , Flag Manipulation an...

Flag Manipulation and Processor Control Instructions These instructions control the functioning of available hardware inside the processor chip. These are categorized into thes

Hashing, what is double hashing

what is double hashing

Progframmw, write a programme the addition two 3*3 matrix and stored in fro...

write a programme the addition two 3*3 matrix and stored in from list

Operating System, Why is the capability to relocate processes desirable?

Why is the capability to relocate processes desirable?

Cbw-cwd-arithmetic instruction-microprocessor, CBW: Convert Signed Byte to...

CBW: Convert Signed Byte to Word: This instruction converts a signed byte to a signed word. In other terms, it copies the sign bit of a byte to be converted to all of the bits in

Program help, Could I get an estimate on how much it would cost to write a ...

Could I get an estimate on how much it would cost to write a program in assembly language?

Flowchart for the sequence of 8251-microprocessor, Flowchart for the sequen...

Flowchart for the sequence of 8251 Whether the control, mode or sync character register is selected depends on the accessing sequence.  A flowchart of the sequencing is given i

Daa-arithmetic instruction-microprocessor, DAA: Decimal Adjust Accumulator...

DAA: Decimal Adjust Accumulator:- This instruction is utilized to convert the result of the addition operation of 2 packed BCD numbers to a valid BCD number. The conclusion has to

Basic microprocessor architecture and interface, Basic Microprocessor Archi...

Basic Microprocessor Architecture and Interface : Introduction: Intel launches its first 4-bit microprocessor 4004 in the year 1971 and 8-bit microprocessor 8008 in the y

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd