In systems programming, how do I refer to the pointer and index register indirectly? Please let me know in relation to systems programming, CSC 490.
The answer to your question varies based on the type of assembly language you are using. Assembly languages are particular to specific families of CPUs (i.e. 80×86, 68XXX).
For the 8088, indirect mode looks like:
ADD CL, [BX]
For the Power Architecture, indirect mode looks like:
lwz r4, 0×1000(r3)
Tags: Pointer
The answer to your question varies based on the type of assembly language you are using. Assembly languages are particular to specific families of CPUs (i.e. 80×86, 68XXX).
For the 8088, indirect mode looks like:
ADD CL, [BX]
For the Power Architecture, indirect mode looks like:
lwz r4, 0×1000(r3)
References :
Principles of Computer Organization and Assembly Language Using the Java Virtual Machine (Juola).