Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assembly, math.

Status
Not open for further replies.

020KZBJ3

Programmer
Joined
Oct 19, 2020
Messages
2
Location
RU
image_sukfnz.png


please help and write the equation code in assembly language [bigsmile]
 
Hi,

What have you tried so far?

Please post your code.

BTW, is this about assembler code or prescience of operation?

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
 
Code:
mov AX, 0ch
sub AX, 9
; 12-9

mov BL, 01Dh
sub BL, 9
; 16-9

mov AL, 3
mov CL, 2
mul CL
;3*2

mov CH, 2
add CH, 3

please help me, my head is splitting [bigsmile]
 
What is 01Dh supposed to be? It's not 16!

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
 
If you don't know the answer I don't think there is a way you can complete the script. I'm pretty sure you have to complete the script by ending with an answer.

FYI: I am very new to assembly and just joined here. Sorry if I'm wrong.

Sincerely,
Bob Space
 
Welcome, Bob Space.
Exactly! Precisely the point of my questions.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top