base:quick_vicii_screen_setup
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | base:quick_vicii_screen_setup [2015-04-17 04:33] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Quick VIC-II Screen Setup ====== | ||
+ | |||
+ | This code snippet will set the both the bank and the screen address registers, given simple pointers to screenChars and screenPixels. | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | |||
+ | ; Select VIC bank | ||
+ | lda # ((screenChars ^ $ffff) >> 14) | ||
+ | sta $dd00 | ||
+ | |||
+ | ; Set VIC screen and font pointers | ||
+ | lda # (((screenChars & $3fff) / $0400) << 4) + (((screenPixels & $3fff) / $0800) << 1) | ||
+ | sta $d018 | ||
+ | </ | ||
+ | |||
+ | by White Flame | ||
+ | |||
base/quick_vicii_screen_setup.txt · Last modified: 2015-04-17 04:33 by 127.0.0.1