Search found 24 matches

by saxman
Mon Mar 10, 2025 6:53 am
Forum: Super 32X
Topic: 32X colors
Replies: 3
Views: 6013

Re: 32X colors

Okay, yeah I looked for such a thread and couldn't quite locate it. I'm sure it's around somewhere.

To make absolutely sure I wasn't crazy or didn't have some weird fluke, I tried it again today and did a whole slew of value comparisons and combinations.

From my comparisons, 32X green 0x1F matches ...
by saxman
Sun Mar 09, 2025 4:13 am
Forum: Super 32X
Topic: 32X colors
Replies: 3
Views: 6013

32X colors

By doing some careful color matching between the 32X and the Genesis, I have concluded the following:

1) The 32X uses a linear color ramp.

2) The green seems to need a slight boost (less than a single color step) over the red and blue to come close to a Genesis color.

It's the second point that ...
by saxman
Tue Feb 25, 2025 5:49 am
Forum: Super 32X
Topic: 32X and Genesis frame alignment in H32 mode
Replies: 1
Views: 3069

32X and Genesis frame alignment in H32 mode

First off, I am fully aware that H32 is not officially supported for the 32X. But it does work.

What I have noticed though, at least on my setup (NTSC model 2), is when H32 is being used, the 32X frame is shifted to the right about four pixels, revealing a slither of the Genesis graphics on the ...
by saxman
Fri Jun 21, 2024 5:04 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw

I just thought of something: palette definitions have a priority bit. That's probably what's giving me trouble. I'll have to play with it later when I have some time.

I still think the hardware manual could be a little clearer. I might have picked this up sooner. :|
by saxman
Fri Jun 21, 2024 6:29 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw

This board doesn't have much activity these days. I hope this post gets seen by someone...

I'm trying to understand how to draw 32X graphics in front of the Genesis VDP output. I currently have no tiles mapped to the Genesis VDP. So it's a blank screen with a green background. I write 0x0000 words ...
by saxman
Sun Jan 16, 2022 5:00 am
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw


It's no wonder it has problems... you aren't saving r0 or r2.

Close. It is saving the R0 register in 'main_irq'. However, I completely missed R2. Fixed. Thanks!


Static is only for LOCAL variables. This MUST be a global variable.
"volatile unsigned int variable_name;" and this must not be ...
by saxman
Fri Jan 14, 2022 6:40 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw


That variable needs to be set as volatile, for one. Also, have you enabled the vbi? Look at D32XR's crt0.s at about line 390. We enable the vbi and set sr to allow interrupts right before purging the cache and jumping to main().


I got it "working". That is, it calls my C code now! But something ...
by saxman
Mon Jan 10, 2022 11:05 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw

I've been trying to establish an FPS counter to aid me further in screen draw optimizations. I want to increase a counter every time a V-Int occurs. Likewise, I want to increase a frame counter every time I draw to the screen in my logic loop. Then with some math wizardry, I have an FPS count.

The ...
by saxman
Sat Jan 08, 2022 4:51 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 69675

Re: Untitled 32X Super Scalar Project

Chilly Willy wrote: Sat Jan 08, 2022 12:36 am Make sure the Z80 is held reset
I've wondered about this for a while now. So if I'm interpreting you correctly, it sounds like unless you want to hinder the system's overall performance, using the Z80 for anything at all does more harm than good in the case of 32X development.
by saxman
Thu Jan 06, 2022 9:16 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw

Oh my gosh... just figured it out:

volatile unsigned short *lineTable16 = &(*(volatile unsigned short *)0x24000000);
volatile unsigned short *frameBuffer16 = &(*(volatile unsigned short *)0x24000200);

Since it's using entries from 'lineTable16' to plug into the offset for 'frameBuffer16', it's ...
by saxman
Thu Jan 06, 2022 7:55 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw

Good question. I have set the camera position to {0,0} and modified the level layout slightly to get it to draw some things. Should show 128x128 area of waterfall and 128x128 area of wall in the following way:

[water, wall, water]
[wall, water, wall]

The right-most chunks should only show the ...
by saxman
Thu Jan 06, 2022 4:42 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw

So I've been trying to take care of the 0xFF pixel shift bug. I also wanted to take advantage of more frame buffer real estate, thus trying to make each row 578 pixels wide (that number was picked in part because it only allows for a single 0xFF line offset at any given time). I rewrote the drawing ...
by saxman
Mon Jan 03, 2022 5:55 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw


There is only enough fill rate to cover all of the screen once while using all of the CPU power, due to all the wait states on VRAM access. If you want 60FPS you need to limit amount of stuff that gets drawn, both in area and definitely in overdraw. It is faster to check what has to be drawn and ...
by saxman
Sun Jan 02, 2022 5:57 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 69675

Re: Untitled 32X Super Scalar Project

Is that airplane polygon-based, or just a bunch of sprites at different angles? Looks spritey, but angle changes are very fluid like polygons
by saxman
Sun Jan 02, 2022 5:51 pm
Forum: Super 32X
Topic: 32X VDP going crazy with my attempts to draw
Replies: 36
Views: 140571

Re: 32X VDP going crazy with my attempts to draw


Take a look at my research posts about drawing sprites. There are routines that draws 32x32 sprites in various ways. It may give you some ideas.

But realistically chances are you’ll have to settle for a low framerate or draw just the important objects. The 32x doesn’t give you enough pixel ...