Drop (Drop Low Order Digit); Rnd (Generate Random Number) - Pioneer LD-V8000 User Manual

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

Advertisement

53) DROP
Function: The DROP command acts as part of an argument. It "drops" the low-order
decimal digit from the argument it receives, passing the result on as an argument value.
Argument
[Integer]
Explanation: The argument value (perhaps taken modulo 65536) is divided by 10, with
any remainder discarded. The resulting value is used as the argument for the following
command. With no argument or arguments less than 10, 0 is passed on as the new
argument value.
CAUTION: In some cases 90000 DROP SEARCH will not search to frame 9000 due to a
modulo 65536 operation performed on the 90000 argument.
Example: Set R0 to 123. Then, replace the low digit with a 7.
Address
Argument
0014
0018
0 ARG DROP 7

54) RND (Generate Random Number)

Function: RND generates a random number which is used as an argument for the
following command.
Argument
[Ignored]
Explanation: RND acts as part of an argument. It ignores its own argument and
generates a "random" value in the range of 0 through 255. That value becomes the
argument for the following command.
*
Recalls contents of R0 =123; divides by 10 with no remainder =12. Multiplies previous
argument by 10 and adds 7. Puts 127 into R0.
Pioneer LD-V8000 Level II User's Manual
Hex Code
1D
Command
Hex Code
123
GET
GET
Hex Code
05
LD-V8000 Level II • Chapter Four
Mnemonic
DRP
Comment
08
Put 123 into R0
08
Puts 127 into R0*
Mnemonic
RND
TP 114 v. 1.1
8/92
DROP
RND
;
RCU Buttons
Play, 1, D
RCU Buttons
Play, 0, 5
4-43

Advertisement

Table of Contents
loading

Table of Contents