README-ARCAssembler - The ARC Assembler, Version 1.22 Apr...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
The ARC Assembler, Version 1.22 Apr 28, 2000 This file contains instructions for operating the ARC Assember. Please send bug reports to pocabugs@cs.rutgers.edu. Place "ARC Assembler Bug" in the message header. I. What Is The ARC Assembler? The ARC Assembler is a 2-pass symbolic assembler that assembles ARC assembly-language programs to the ASCII equivalent of a hexadecimal representation of a binary file, and a listing file. Comments begin with an exclamation point, !, and end with end-of-line. The assembler supports symbolic references and assemble-time arithmetic. II. What instructions are supported? The following operation codes and pseudo operations are supported: "nop" halt" "sethi" "be" "bcs" "bneg" "bvs" "ba" "bne" "bcc" "bpos" "bvc" "call" "jmpl" "addcc" "andcc" "subcc" "orcc" "orncc" "xorcc" "srl" "sll" "sra" "add" "sub" "and" "or" "orn" "xor" "ld" "st" ".dwb" ".begin" ".end" ".org" ".equ" "nop" performs no instruction but increments the program counter. "halt" stops the simulator. "sethi" sets the high 22 bits and zeros the low 10 bits of a register. If the operand is 0 and the register is %r0, then the instruction behaves as a no-op (nop). Example usage: sethi 0x304F15, %r1. Meaning: Set the high 22 bits of %r1 to 0x304F15 and set the lower 10 bits to zero. "be" branch on equal to zero. If the z condition code is 1, then branch to the address represented by the label which is the instruction operand. Example usage: be label. Meaning: Branch to label if Z is 1. "bcs" branch on C set. If the c condition code is 1, then branch to the address represented by the label which is the instruction operand. Example usage: bcs label. Meaning: Branch to label if C is 1. "bcc" branch on carry clear. If the c condition code is 0, then branch to the address represented by the label which is the instruction operand. Example usage: bcc label. Meaning: Branch to label if C is 0. "bneg" branch on negative. If the n condition code is 1, then branch to
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
the address represented by the label which is the instruction operand. Example usage: bneg label.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/13/2011 for the course CGS 3269 taught by Professor Staff during the Spring '08 term at University of Central Florida.

Page1 / 4

README-ARCAssembler - The ARC Assembler, Version 1.22 Apr...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online