C-64 Programmer's reference guide

Page 311

C64PRG10 multi-color modes) as follows: BIT PAIR | COLOR DISPLAYED --------------------+---------------------------------------------------00 | Transparent 01 | MOB Multi-color #0 (register 37 ($25)) 10 | MOB Color (registers 39-46 ($27-$2E)) 11 | MOB Multi-color #1 (register 38 ($26)) Since two bits of data are required for each color, the resolution of the MOB is reduced to 12X21, with each horizontal dot expanded to twice standard size so that the overall MOB size does not change. Note that up to 3 colors can be displayed in each MOB (in addition to transparent) but that two of the colors are shared among all the MOBs in the multi-color mode.

442

APPENDIX N

~ MAGNIFICATION Each MOB can be selectively expanded (2X) in both the horizontal and vertical directions. Two registers contain the control bits (MnXE,MnYE) for the magnification control. REGISTER | FUNCTION ------------+-----------------------------------------------------------23 ($17) | Horizontal expand MnXE-"1"=expand; "0"=normal 29 ($1D) | Vertical expand MnYE-"1"=expand; "0"=normal When MOBs are expanded, no increase in resolution is realized. The same 24*21 array (12X21 if multi-colored) is displayed, but the overall MOB dimension is doubled in the desired direction (the smallest MOB dot may be up to 4X standard dot dimension if a MOB is both multi-colored and expanded). PRIORITY The priority of each MOB may be individually controlled with respect to the other displayed information from character or bit map modes. The priority of each MOB is set by the corresponding bit (MnDP) of register 27 ($1B) as follows: REG BIT | PRIORITY TO CHARACTER OR BIT MAP DATA ------------+-----------------------------------------------------------0 | Non-transparent MOB data will be displayed (MOB in front) 1 | Non-transparent MOB data will be displayed only instead of | Bkgd #0 or multi-color bit pair 01 (MOB behind) MOB-DISPLAY DATA PRIORITY +--------------+--------------+ | MnDP = 1 | MnDP = 0 | +--------------+--------------+ | MOBn | Foreground | | Foreground | MOBn | | Background | Background | +--------------+--------------+ Pagina 311


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.