When an 8-bit or 16-bit data is loaded from the data memory into a 32-bit register, whether sign extension or zero extension

When an 8-bit or 16-bit data is loaded from the data memory into a 32-bit register, whether sign extension or zero extension is performed depends on the data’s sign. LDRSB (load register with signed byte) LDRSH loads a signed byte and LDRB (load register with byte) for an unsigned byte. LDRSH (load register with signed halfword) and LDRH (load register with halfword) read load a 16-bit signed and unsigned number from memory into a register, respectively What is the value in register r1 in the following instructions if re Assume the system is little endian. ex20008000? (1) LDRSB r1, [re] (2) LDRSH r1, [r0] (3) LDRB r1, [re] (4) LDRH r1, [re] Data Memory address ex20008002 0XA1 0x20008001 0XB2 Өхc3 ex20008000 0XD4 ex20007FFF 0X20007FFE 0XE5



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *