KevKelley Posted September 17, 2021 Share Posted September 17, 2021 I was looking over the kernel options chart and noticed that it mentions pfcolors can be used with background but when I try to compile it states that that option can only DPC+. Is this correct or is there a way to use bkcolors and pfcolors in a standard kernel bB program? Quote Link to comment https://forums.atariage.com/topic/325055-pfcolors-and-bkcolors-in-standard-kernel/ Share on other sites More sharing options...
+Random Terrain Posted September 17, 2021 Share Posted September 17, 2021 You can't use bkcolors. If I remember correctly, "pfcolors:" data goes to the background and there is only one color for the playfield. I wonder if there is a post here at AtariAge that explains why pfcolors is a valid choice when using background? Since the foreground data goes to the background, it shouldn't be allowed when you think about it. Quote Link to comment https://forums.atariage.com/topic/325055-pfcolors-and-bkcolors-in-standard-kernel/#findComment-4907085 Share on other sites More sharing options...
KevKelley Posted September 17, 2021 Author Share Posted September 17, 2021 46 minutes ago, Random Terrain said: You can't use bkcolors. If I remember correctly, "pfcolors:" data goes to the background and there is only one color for the playfield. I wonder if there is a post here at AtariAge that explains why pfcolors is a valid choice when using background? Since the foreground data goes to the background, it shouldn't be allowed when you think about it. I noticed that when I did delete bkcolors but kept the background kernel option that the background colors were the playfield colors, which could be handy. I just didn't see anything saying it was DPC+ specific online so I was making sure I didn't miss anything. Thanks. 1 Quote Link to comment https://forums.atariage.com/topic/325055-pfcolors-and-bkcolors-in-standard-kernel/#findComment-4907124 Share on other sites More sharing options...
+Random Terrain Posted September 17, 2021 Share Posted September 17, 2021 6 minutes ago, KevKelley said: I noticed that when I did delete bkcolors but kept the background kernel option that the background colors were the playfield colors, which could be handy. I just didn't see anything saying it was DPC+ specific online so I was making sure I didn't miss anything. Thanks. I just added example code to the bB page: randomterrain.com/atari-2600-memories-batari-basic-commands.html#kernop_background ;*************************************************************** ; ; Kernel options. Cost: loss of missile0. ; set kernel_options pfcolors no_blank_lines background ;*************************************************************** ; ; Sets background colors. ; pfcolors: $32 $34 $36 $38 $3A $3C $3E $3C $3A $38 $36 $34 end ;*************************************************************** ; ; Sets playfield pixel color. ; COLUPF = $CE ;*************************************************************** ; ; Sets up the playfield. ; playfield: ................................ ................................ ....XXXXXXXXXX....XXXXXXXXXX.... ....X......................X.... ....X......................X.... ....X......................X.... ................................ ................................ ....XXXX....XXX..XXX....XXXX.... ................................ ................................ end ;*************************************************************** ;*************************************************************** ; ; MAIN LOOP ; ; __Main_Loop ;*************************************************************** ; ; Sets top row background color. ; COLUBK = $32 ;*************************************************************** ; ; Displays the screen. ; drawscreen goto __Main_Loop ;*************************************************************** ; ; Puts the color black behind the score. ; asm minikernel sta WSYNC lda #$00 sta COLUBK rts end 1 Quote Link to comment https://forums.atariage.com/topic/325055-pfcolors-and-bkcolors-in-standard-kernel/#findComment-4907203 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.