{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# README-ARCAssembler - The ARC Assembler Version 1.22 This...

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

The ARC Assembler, Version 1.22 Apr 28, 2000 This file contains instructions for operating the ARC Assember. Please send bug reports to [email protected] 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

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

View Full Document
the address represented by the label which is the instruction operand.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}