1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
love history [14]
3 years ago
7

I have the assembly for the max. can someone change the variables of it and make it min. I mean, the assembly for finding the mi

n of the flaoting points. Please!!!
.686
.model flat
.code
_max PROC ;name of fucntion
start:
push ebp ; save caller frame pointer
mov ebp, esp ; establish current frame pointer
mov ebx, [ebp+8] ; store address of first array element into ebx
mov ecx, [ebp+12] ; store the size of array into ecx
xor edx, edx ; initialize loop counter edx to zero
fld dword ptr[ebx] ; load first array element arrary onto st(0)
inc edx ; increment loop counter in edx
loopMax:
fld dword ptr[ebx+edx*4] ; load next array element onto st(1)
fcom st(1) ; compare st(0) with st(1)
fstsw ax ; copy the Status Word containing the result to AX
fwait ; insure the previous instruction is completed
sahf ; transfer the condition codes to the CPU's flag register
ja lookNext ; if st(0) > st(1) jump to lookNext to continue with next array element
fcomp ; pop st(0) because new maximum is in st(1)
; after pop, the new max is again in st(0)
lookNext:
inc edx ; increment counter in edx
cmp ecx, edx ; compare array size in ecx with loop counter in edx
jg loopMax ; if ecx > edx then jump to loopMax
pop ebp ; restore caller frame pointer
ret ; return contents of st(0)_max ENDP
end
Computers and Technology
1 answer:
tatyana61 [14]3 years ago
4 0
Bruh i honeselty dont know
You might be interested in
A profit of ₹ 1581 is to be divided amongst three partner P,Q and R in ratio 1/3:1/2:1/5.theshareof R will be?​
Burka [1]

Answer:

R's share = 306

Explanation:

Sum of ratio = 1/3 + 1/2 + 1/5

LCM = 30

Sum of ratio = (10 + 15 + 6) / 30 = 31 /30

Profit to be shared = 1581

P = 1/3 ; Q = 1/2 ; R = 1/5

Share of R :

(Total profit / sum of ratio) * R ratio

[1581 / (31/30)] * 1/5

(1581 / 1 * 30/31) * 1/5

51 * 30 * 1/5

51 * 6 = 306

5 0
3 years ago
What type of hard drive is in original xbox?
castortr0y [4]
The original Xbox had an 8GB hard disk drive, or HDD.

You basically gave yourself the answer! A hard drive.
4 0
3 years ago
Find and record a set of instructions containing a repetition clause (e.g., instructions on a shampoo bottle, a recipe, etc.). H
Leto [7]

This question belongs to scratch programming. This programming language has various instructions to carry out various tasks. There are different types of repeat statement available. This statement or instruction allows the user / programmer to repeat certain line of statements to a number of times. Here, according to the question, we need to use “Repeat after me”

If you take a music note, the tempo, timing and pitch needs to be mentioned clearly and “:” represents that a particular note to be repeated only once.

3 0
3 years ago
What is microsoft access?
atroni [7]
Microsoft Access is a database management system that is part of the Microsoft Office Suite.
8 0
3 years ago
All of the following are considered active job search methods EXCEPT _____. a. sending out resumes b. attending job training pro
LuckyWell [14K]
A sending out resumes
5 0
3 years ago
Read 2 more answers
Other questions:
  • Which graphic design tool allows you to lay images on top of one another? A. Layers B. Selection C. Drawing D. Color
    10·2 answers
  • Rewrite this method so that it avoids the use of a return statement:
    15·1 answer
  • The Internet of Things (IoT) is a concept with emphasis on machine-to-machine communications to describe a more complex system t
    10·1 answer
  • Please helpp!! I need it quickly!
    6·1 answer
  • A windows host sends a tcp segment with source port number 1200 and destination port number 25. the sending host is a(n) _______
    10·1 answer
  • Idea citizen activation
    9·2 answers
  • MacBook Pro (2019) at 93% max capacity battery rating after 100 charge cycles. Is this normal? Used coconut battery to check thi
    10·2 answers
  • Cuzzzzzzzzzzzzzzzz iiiiiiiiiiiiiiiii remember everytimeeeeeeeeee on these days that i feel like you and meeeeeeeeeeeeeee
    15·1 answer
  • Electronic mail is best used to:
    5·2 answers
  • Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!