Create a method called multiply

Assignment Help Assembly Language
Reference no: EM131744024

Assignemnt

Every question need as asm type.

1. Celo - write a program to throw three dice, 100 times. Add each triplet and count how many times each occurred. Print the results as a bar graph. EC Determine which total appeared the most.

2. Write a program to create 120 random numbers from 1 to 15. Count how many times each appeared. Print out the each number and its counts.

After you print them out, print them out in order. (Think, this is jokingly easy)

3. Create a method called multiply. Use it to multiply read in to integers and multiply them and the print out: 13*6 = 78(assume the ints were 3 and 6)

Hint, use ecx and adding only.

So far I only learn chapter 1-5, so only can use code between these chapters.

Example:

.data
number dword 1
plus byte " + ",0
equals byte " = ",0
dash byte "============================================",0
.code
main PROC
call clrscr
mov ecx, 10

outer:
push ecx
mov ecx, 10 ; 1 to 10
table:
mov eax,number; number table
call writedec
mov edx,offset plus
call writestring

mov ebx,11
sub ebx,ecx ;these two lines give me 1,2,3,4,5,6,7,8,9,10
mov eax,ebx
call writedec
mov edx,offset equals
call writestring
add eax,number
call writedec
call crlf
loop table
mov eax , lightblue+ 16*black
call settextcolor
mov edx,offset dash
call writestring
mov eax,white+16*black
call settextcolor
;**********************************************
mov eax, 2000
call delay
;***********************************************
call crlf
inc number
pop ecx
loop outer
exit

main ENDP

end main

Text Book: Assembly Language for x86 Processors (Sixth edition).

Reference no: EM131744024

Questions Cloud

How hospitals can provide comforting environment for patient : Compassionate Care During the past five years, I have filled out numerous standardized forms that ask questions that have been repeatedly asked by a wide.
Calculate the depreciation expense : Calculate the depreciation expense using the diminishing-balance method for 2015 and 2019. Assume the depreciation rate is equal to one time straight-line rate
The funding of and advocating for health care research : How do you envision the role of federal, state, and local government in the ongoing efforts in the funding of and advocating for health care research?
What must the risk-free rate be : A stock has an expected return of 14 percent, its beta is 1.35, and the expected return on the market is 12 percent. What must the risk-free rate be?
Create a method called multiply : Create a method called multiply. Use it to multiply read in to integers and multiply them and the print out: 13*6 = 78(assume the ints were 3 and 6).
Will morgan accept the project : Morgan uses the net present value method and has a discount rate of 12%. Will Morgan accept the project?
What is rita basis in her partnership interest : Gerry contributes cash of $100,000. What is Rita's basis in her partnership interest immediately after formation of the partnership
Evaluate the normans initial approach to obtaining financing : What aspects of Robert and Teresa Norman's backgrounds will contribute to their success with the picture-framing store?
Considered an employee or independent contractor : What are factors that can determine whether an individual is considered an employee or an independent contractor ?

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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