Using bit-wise operations – Apple DVD Studio Pro 4 User Manual

Page 511

Advertising
background image

The globe is divided into eight sections:

Region 1: Canada, United States, Puerto Rico, Bermuda, the Virgin Islands, and some

islands

Region 2: Japan, Western Europe (including Poland, Romania, Bulgaria, and the Balkans),

South Africa, Turkey, and the Middle East (including Iran and Egypt)

Region 3: Southeast Asia (including Indonesia, South Korea, Hong Kong, and Macao)

Region 4: Australia, New Zealand, South America, most of Central America, Papua New

Guinea, and most of the South Pacific

Region 5: Most of Africa, Russia (and former Russian states), Mongolia, Afghanistan,

Pakistan, India, Bangladesh, Nepal, Bhutan, and North Korea

Region 6: China and Tibet

Region 7: (Reserved)

Region 8: Airlines, cruise ships, and other types of transportation

Here is a table of regions and values for SPRM 20:

SPRM 20 value

Region

1

1

2

2

4

3

8

4

16

5

32

6

64

7

128

8

Using Bit-Wise Operations

More often than not, when working with the SPRM values, you will only be interested in
certain bits of each 16-bit value. The “bit-wise” operations (and, or, and exclusive or),
make it possible to mask the bits that are not needed, allowing you to determine the
states of the specific bits you need.

Note: You need to have a basic understanding of working with binary numbers to be
able to use these operations.

511

Chapter 20

Creating Scripts

Advertising