Compare - Pioneer LD-V8000 User Manual

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

Advertisement

51) COMPARE

Function: This command compares R0 to the argument for conditional branching.
Argument
[Integer]
Explanation: The COMPARE command compares the contents of Register 0 to the
argument value. Sequential execution continues if Register 0 is greater than the
argument. If Register 0 is equal to the argument, program code is skipped until exactly
one BRANCH command is skipped, then sequential execution continues (with the
command just after that BRANCH). If Register 0 is less than the argument, two BRANCH
commands are skipped, and then command execution continues (with the command
immediately following the second BRANCH).
Note: No argument is equivalent to a zero argument.
Example: If R0 > R21, SEARCH to Frame 1000. If R0 = R21, set R0 to 36. If R0 < R21,
do neither. Then wait 2 seconds and SEARCH to Frame 1234.
Address
Argument
0019
21 ARG
0023
0028
0031
0034
0037
0040
Pioneer LD-V8000 Level II User's Manual
Hex Code
04
Command
COMPARE
1000
SEARCH
37
BRANCH
36
GET
37
BRANCH
20
WAIT
1234
SEARCH
LD-V8000 Level II • Chapter Four
Mnemonic
COM
Hex Code
Comment
04
Compare R0 and R21
F7
Search when R0 > R21
CF
08
When R0 = R21, R0 <-- 36
CF
FB
Skip to here if R0 < R21
F7
TP 114 v. 1.1
COMPARE
RCU Buttons
Play, 0, 4
8/92
4-41

Advertisement

Table of Contents
loading

Table of Contents