English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 24 August 2019, 14:07   #21
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,204
Quote:
Originally Posted by Havie View Post
Could you show me this in code as I don't understand what you mean...sorry, being a bit thick.
Basically, the DisplayControls command appears to carry out an Exclusive-OR with the arguments for BPLCON2 and BPLCON4 and their defaults, but not with BPLCON3. Exclusive-OR (XOR) is a simple logical function that reverses all the bits involved. So, carrying it out twice on the same value will give you back the original value, meaning you can eliminate the effects of the XOR on BPLCON2 and 4 by carrying out a pre-XOR on them.

Something like this:
Code:
; Xor %100001 with the default $224 to get the rear playfield behind all sprites, and the front playfield behind channels 0 & 1 only
; $1C00 sets 2nd playfield palette to start at 16
; Xor $23 with the default $11 to set sprite bank 3 for odd & joined sprites, and bank 2 for even sprites
DisplayControls 0, Xor(%100001, $224), $1C00, Xor($23, $11)
Daedalus is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing sprite images in long display lists phx Coders. Asm / Hardware 2 12 March 2016 20:13
MagicMenu Task Priority NovaCoder support.Apps 2 10 February 2013 10:42
More settings in priority panel Thom87 request.UAE Wishlist 2 24 January 2008 15:23
priority resets after reset jrom support.WinUAE 0 10 April 2004 16:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.07149 seconds with 14 queries