how to write a portion of simple program using assembly language based on the situation below

initialized a value in EAX register as 5000h
subtract 1500 from the EAX value.
multiply the current value of in EAX register with EBX=5
and display the latest value in EAX register.

Sounds like a homework problem to me, so I will not be specific. However, you might want to google the instruction set for the x86 processor. In particular, look at how to use mov, sub, mul. As for displaying the latest value in the eax register - what program are you using to assemble/debug your code?

Here are some hints:

mov ebx, 1234h
add ebx, 0024h
mov eax, 5
div ebx, eax
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.