Pioneer LD-V8000 User Manual page 78

Level ii
Hide thumbs Also See for LD-V8000:
Table of Contents

Advertisement

Example: Assume R0 contains 1200. Subtract 50 from R0 and BRANCH to the
calculated program address.
Address
Argument
0015
0018
0 ARG
45) MULTIPLY
Function: This command multiplies Register 0 by the argument, with overflow to R3.
Argument
[Integer]
Explanation: This command takes the argument (modulo 65536) and multiplies it by
the value in R0. The two lower-order bytes of the 4-byte result are stored in R0. The two
high-order bytes are stored in Register 3. Thus, if the result is less than 65535, Register
3 becomes 0. For example, 358 x 450 = 161100, so R0 <-- 30028 and R3 <-- 2.
Example: Assume R0 contains 1200. Multiply R0 by 5 and use the new number as a
frame number for a SEARCH.
Address
Argument
0015
0017
0 ARG
46) DIVIDE
Function: This command divides R0 by the argument, with the remainder in R3.
Argument
Integer
Explanation: The 2-byte contents of Register 0 are divided by the integer argument
(taken modulo 65536). The quotient is stored in R0 and the remainder is stored in R3. If
37 is divided by 5, R0 <-- 7 and R3 <-- 2.
Pioneer LD-V8000 Level II User's Manual
Command
50
SUBTRACT
BRANCH
Hex Code
22
Command
5
MULTIPLY
SEARCH
Hex Code
21
LD-V8000 Level II • Chapter Four
SUBTRACT
Hex Code
Comment
03
R0 <-- R0 - 50
CF
Branch to 1150 (from R0)
Mnemonic
MUL
Hex Code
Comment
22
R0 <-- R0 x 5
F7
Search to Frame 6000
Mnemonic
DIV
TP 114 v. 1.1
MULTIPLY
(cont.);
RCU Buttons
Play, 2, 2
RCU Buttons
Play, 2, 1
8/92
DIVIDE
;
4-37

Advertisement

Table of Contents
loading

Table of Contents