Jump to content
Sign in to follow this  
Ender

Fun with PSG Register + Screen 128 mode

Recommended Posts

So one thing I noticed a while ago is that in screen 128 mode, the layer 0 data actually overwrites the PSG registers. This means theoretically you could create sounds by drawing in screen 128 mode.

Sure enough, if you do a certain pset, you can turn up the volume of the PSG:

Quote

PSET 258,199,$FF

You'll notice that makes a pinkish pixel towards the bottom right, and also makes a buzzing sound. You can also change the other registers, to make whatever sound you want, like a simple square wave.

Quote

10 SCREEN 128

20 PSET 256,199,$FF

30 PSET 257,199,$01

40 PSET 258,199,$F8

50 PSET 259,199,$3F

 

  • Like 2
  • Thanks 1
  • Haha 3

Share this post


Link to post
Share on other sites
1 hour ago, John Chow Seymour said:

I don't quite understand.  Is this intentional?  If not, is it an issue with the emulator?

It's bad/lazy VERA configuration. You can remap VRAM to prevent this.

Share this post


Link to post
Share on other sites
2 hours ago, John Chow Seymour said:

I don't quite understand.  Is this intentional?  If not, is it an issue with the emulator?

I think the screen 128 mode was first written before the VERA was set up the way it is now with the PSG registers, and it simply hasn't been changed to adjust for it.  Although I'm not really sure how you could easily fix it besides just making it one scanline less, so it's 320x199.  The only other thing I can think of would be to move the character data for layer 1 so that you could start the layer 0 data lower in memory.

Share this post


Link to post
Share on other sites

Actually it is both... I have described it in another thread here. 
 

the screenram layout should change .... move the charrom to the End $1F000 and move layer 0 to $04000 ...  I I’ll suggest it as a Pullrequest for the kernel

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

Please review our Terms of Use