nothingasis
In Runtime
- Messages
- 198
- Location
- CA
Hey, can't figure out what's wrong with this file.
The div instruction displays the wrong result.
I'm using Visual Studios to compile this, the template file can be provided if needed.
Objective is to display the the result of a div instruction where the dividend is stored in register EAX. The problem I'm having is that the displayed result stored in EAX comes out wrong.
I have my .asm file in the link below I'd appreciate it if anyone could help me out.
Also we were supposed to display it onto a single window on two lines.
CommentsAlready in the pastebin file but I'll post here as well)
And as always please and thank you!
The div instruction displays the wrong result.
I'm using Visual Studios to compile this, the template file can be provided if needed.
Objective is to display the the result of a div instruction where the dividend is stored in register EAX. The problem I'm having is that the displayed result stored in EAX comes out wrong.
I have my .asm file in the link below I'd appreciate it if anyone could help me out.
Also we were supposed to display it onto a single window on two lines.
Code:
pastebin.com/1Lsu6brs
CommentsAlready in the pastebin file but I'll post here as well)
Code:
Objective: Prompt and allocate DWORD(32 bits) size labels for Grade1-Grade4 and Weight1-Weight4.
Solve for WeightedSum = G1*W1 + G2*W2 + G3*W3 + G4*W4
Solve for SumOfWeights = W1 + W2 + W3 + W4
Solve for WeightedAverage = (WeightedSum/SumOfWeights)
Display WeightedAverage & WeightedSum
Code:
Grades: Weights:
88 1
77 2
94 1
85 3
SumOfWeight = 7
WeightedSum = 591
WeightedAvg = 81 ;Displays 1792
And as always please and thank you!