What, in the context of assembly language, is a pseudo?operation?

a. ADR r0,table
b. LDR = r0,0x1234FEDC


The ADR operation generates the appropriate code to load a 32?bit value into a register. In this case, the address of the label ‘table’ will be loaded into r0. This instruction sets up a pointer.

The LDR = r0, instruction also loads a 32?bit value into a register. However, in this case, the value loaded is the constant in the instruction. The assembler synthesizes this instruction from other instructions. Typically, the assembler places the constant into a literal pool (constants stored as data in memory) and then uses a PC?relative instruction (LDR) to load the constant.

The following example shows the output of the debugger when this code is assembled. Note that the disassembly window shows the actual code in memory. You can see that the ADR has been turned into an ADD instruction by adding an offset to the PC to get the address of location label. Remember that the PC is 8 bytes ahead of its current value (in this case the current value is 0).

The LDR r1,= 0xAABBCCDD is transformed into LDR r1,[PC,#0x0008] which loads r1 with the value 8 bytes on from the current PC. At that location is the constant AABBCCDD.

Computer Science & Information Technology

You might also like to view...

The Trace Outline command traces the outline of the stroke at its current stroke weight, then converts the stroke into a filled object with that size.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Most DBMSs include a feature, as shown in the middle image within the accompanying figure, which has a graphical user interface to assist users with retrieving data. What is this feature called?

A. QBA B. SQL C. QBE D. schema

Computer Science & Information Technology

Which function would you use to test for a relationship between students' attendance and their test scores?

A. CORREL B. RELATE.S C. RELATE.P D. VARPA

Computer Science & Information Technology

Performance problems in a PC are usually due to ____ problems.

A. hardware B. software C. both A and B D. neither A nor B

Computer Science & Information Technology