Jump to content
IGNORED

pfcolors and bkcolors in Standard Kernel?


Recommended Posts

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?

Link to comment
https://forums.atariage.com/topic/325055-pfcolors-and-bkcolors-in-standard-kernel/
Share on other sites

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.

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.

  • Like 1
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

 

  • Like 1

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...