Construct a large integer (32 – Bit) from two Byte Variables (8 – Bit) and one Word Type variable
(16 – Bit). Store your result into EAX and print it. Like if
byte1 = 21h, byte2 = 43h & word1 = 8765h
Then your output may be
87654321h OR 43218765 OR 43876521

Recommended Answers

All 3 Replies

We won't write it for you - show us what you've done so far, and it helps to indicate a specific question or problem you're having.

Oops ... see following ... duplicate accidently posted here.

This should help ...

http://plantation-productions.com/Webster/www.artofasm.com/Windows/HTML/HelloWorlda3.html#998367

http://plantation-productions.com/Webster/www.artofasm.com/Windows/HTML/images/HelloWorld5.gif

ALSO see:

https://en.wikipedia.org/wiki/Endianness

to see why what you say is possible output ... IS UNLIKELY ... unless you do some special handling with the bytes and word data

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.