English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 13 March 2022, 16:33   #1
Auscoder
Registered User
 
Join Date: Jan 2019
Location: Brisbane
Posts: 99
BPLAMx for selecting color banks

Hey all, I am running a quick sanity check by here as I am having trouble getting this working.

Do I set the bits 15-08 (BPLAM) of DFF10C to the colour bank I want to switch to by setting BPLAM bits as == colour bank (0-7) * 32?

As I read BPLAM is xor'd with the bit plane colour index. So it seems setting BPLAM like above results in bitplane colour i (0-31) using bank n = (n*32) + i.

Have I got that right? I am with PF2 has priority over PF1 if that makes any difference.

Edit: Never mind, after all that I forgot to shift the result into BPLAM - For reference in case of search here is slow destructive sample.

Code:
MOVE.W #BANK0-7,D0
ASL.W #5,D0 ; MULT * 32
ASL.W #8,D0 ; SHIFT IN TO BPLAM
; Write d0 to BPLCON4

Last edited by Auscoder; 14 March 2022 at 03:04. Reason: User error!!
Auscoder 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
Problem keeping different banks in memory Arne Coders. AMOS 7 17 June 2021 21:55
Color Saturation and Color Tint/Hue Retro-Nerd support.WinUAE 22 02 August 2018 10:38
2 Icon/object banks? volvo_0ne Coders. AMOS 6 24 April 2018 10:06
Printing in color with WinUAE on color laser source support.Apps 7 14 April 2013 00:32
ISO true color to 256 color algorithm Lord Riton Coders. General 19 15 April 2011 17:49

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 00:56.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09052 seconds with 12 queries