1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <title>binop/lit8</title>
7 <link rel=stylesheet href="opcode.css">
17 Perform the indicated binary op on the indicated register (first argument) and
18 literal value (second argument), storing the result in the destination register.
23 <table class="instruc">
26 <th>Op & Format</th>
27 <th>Mnemonic / Syntax</th>
34 <td><i>binop</i>/lit8 vAA, vBB, #+CC<br/>
36 d9: rsub-int/lit8<br/>
47 <td><code>A:</code> destination register (8 bits)<br/>
48 <code>B:</code> source register (8 bits)<br/>
49 <code>C:</code> signed int constant (8 bits)</td>
58 Both A and B must be valid register indices in the current stackframe.
61 Registers vA and vB must be defined. They must both contain integer values.
64 C is an immediate, signed integer constant taken from the instruction stream
65 (actually this means there are no special requirements for C at all).
73 The given operation <binop> is performed according to the semantics
74 specified in table XXX.
77 Argument C is sign-extended to 32 bits before.
80 The result is stored in register vA, that is, vA'=vB <binop> vC.
83 As usual, neighboring registers might get undefined, if vA was part of a
84 register pair originally.
92 ArithmeticException if an error occurs during the instruction.