1 / 6

Loading Multiple Base Registers

Loading Multiple Base Registers. Programmer Responsibilities. Tell the assembler which registers to choose when creating base/displacement addresses X DS CL5 ==> C008 (BDDD) Do this with USING: USING *,R12

betty
Download Presentation

Loading Multiple Base Registers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Loading Multiple Base Registers

  2. Programmer Responsibilities • Tell the assembler which registers to choose when creating base/displacement addresses X DS CL5 ==> C008 (BDDD) Do this with USING: USING *,R12 • Load the base register with the correct address

  3. Loading a Single Register Address X‘1000’ BASR R12,R0 USING *,R12 X’1002’ ...

  4. Why is this Incorrect? Address USING *,R12 X’1000’ BASR R12,R0 X’1002’ ...

  5. Loading Multiple Registers Address X‘1000’ BASR R12,R0 USING *,R12,R11,R10 X’1002’ LA R10,2048 LA R11,2048(R12,R10) LA R10,2048(R11,R10) Remember that X’1000’ = 4096 X’800’ = 2048

  6. Direction • It would be helpful to understand the terms Domain and Range as they relate to USINGs. • Also, read about the DROP directive

More Related