Assuming the following assembly language program starts at l

Assuming the following assembly language program starts at location 0000, what is the address of the first \'l\'?
CHARO 0X0048,i; output \'h\'
CHARO 0x0065,i; output \'e\'
CHARO 0c006C,i; output \'l\'
CHARO 0x006C,i; output \'l\'
CHARO 0x006Fi ;output \'o\'
STOP
.END

Solution

program starts at memory location 0000

then H will store at 0000

e will store at 0004

L will store at 0008

like this the charcters are stored

So the First L will at memory location of 0008.

Assuming the following assembly language program starts at location 0000, what is the address of the first \'l\'? CHARO 0X0048,i; output \'h\' CHARO 0x0065,i; o

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site