Once you save your source text in a file the name of

This preview shows page 5 - 6 out of 10 pages.

Once you save your Source text in a file, the name of the current file will show after the Fname: string. You can save the Source text in the current file at any time by selecting Save from the File menu. (Note that the Fname: string is currently shown in black indicating no unsaved changes.) The File menu also includes two options for loading in the Source window existing assembly programs from files. The Load option will overwrite the current Source text with the new one from the file (a warning will be issued in case of unsaved changes.) The Append option on the other hand will add the new program text from the file after the last character of the current Source text. Note that after using Append the file name will be cleared and the unsaved changes flag will be raised. The last option of the File menu is Exit which just terminates the RVS program (a warning will be issued in case of unsaved changes.)
Image of page 5

Subscribe to view the full document.

Page 6 of 10 3. Compilation Now let us proceed with compiling the text in the Source window. Press the Compile button and the Listing window will change as shown below. The resulting assembly listing shown above contains five columns as described below: ADDRESS 0x0000000000000000 This is the memory address where the compiled instruction is placed. BIN/HEX CODE I 000000000001 00000 000 00101 0010011 This is the binary representation of the compiled instruction. HEX OPERANDS addi x5 x0 0x001 This is the canonical form of the instruction (spaces instead of commas and no parentheses) with all operands in hexadecimal. INT OPERANDS addi x5,x0,1 This is the standard form of the instruction (with commas and parentheses) with all operands in decimal. TEXT SOURCE addi x5, x0, 1 This is the instruction text as entered in the Source window. The inclusion of the above columns in the Listing is controlled by the check-boxes in the bottom of the Source window. Only the columns corresponding to the checked boxes will appear in the listing when the Compile button is pressed. Note that in order to change the columns you will have to re-compile the source.
Image of page 6
You've reached the end of this preview.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern