Question: Starting with the following C++ program: #include using namespace std; void main () { const unsigned char c1 (0x11); const unsigned char c2 (0x22); const
Starting with the following C++ program:
#include > using namespace std; void main () { const unsigned char c1 (0x11); const unsigned char c2 (0x22); const unsigned char c3 (0x33); const unsigned char c4 (0x44); unsigned long i1 (0); _asm { } cout << "result is " << hex << i1 << endl; } Inside the block denoted by the _asm keyword, add code to put the values of c1, c2, c3, and c4 (each 8 bits) into the eax register with c1 being loaded at the high (most significant end) and c4 at the low end. Put the 32 bit result into i1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
