4.2.6 Register Commands - Pioneer LD-V8000 User Manual

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

Advertisement

Chapter Four • LD-V8000 Level II
Register Commands — ADD

4.2.6 Register Commands

Each of the following commands affect the contents of at least one of the user registers:
ADD, SUBTRACT, MULTIPLY, DIVIDE, GET, PUT, DECREG, STORE, RRS, and CLOCK.
The COMPARE command uses the contents of a register. RECALL affects the Active
Register Pointer. The ARG, RND, and DROP "commands" are only used as part of
another instruction's argument.
43) ADD (Addition)
Function: This command adds the argument value to Register 0.
Argument
[Integer]
Explanation: The integer argument (taken modulo 65536) is added to the value stored
in Register 0. The resultant sum is also taken modulo 65536 and the result then
replaces the value in Register 0.
Example: Add 1020 to the number stored in Register 0 and use it as a frame number
for a search. Assume Register 0 initially contains 8400.
Address
Argument
0015
0020
0 ARG
44) SUBTRACT
Function: This command subtracts the argument value from Register 0.
Argument
[Integer]
Explanation: The integer argument (taken modulo 65535) is subtracted from the value
in Register 0. The resultant difference (also taken modulo 65536) is then stored in
Register 0. Thus, if the subtraction result is negative, 65536 is added to the result.
before it is stored in Register 0. For example, if R0 contains a value of 10, then 12 SUB
would store 65534 in R0. (For example, 10 - 12; 65536 - 2 = 65534 in Register 0.)
4-36
Hex Code
Command
1020
ADD
SEARCH
Hex Code
03
TP 114 v. 1.1
8/92
SUBTRACT
;
Mnemonic
02
ADD
Hex Code
02
F7
Mnemonic
SUB
Pioneer LD-V8000 Level II User's Manual
RCU Buttons
Play, 0, 2
Comment
R 0 <-- R 0 + 1020
Search to Frame 9420 (from R0)
RCU Buttons
Play, 0, 3

Advertisement

Table of Contents
loading

Table of Contents