Search found 339 matches

by cero
Fri Jul 15, 2022 2:43 pm
Forum: SGDK
Topic: polygon is not drawn
Replies: 19
Views: 40138

Re: polygon is not drawn

You didn't allocate it, and wrote to random memory. You really need to review your C basics.
by cero
Fri Jul 15, 2022 5:35 am
Forum: Megadrive/Genesis
Topic: Cart Design Questions
Replies: 70
Views: 145630

Re: Cart Design Questions

Surely you can repeat the test with recording different lines? If the ROM does the same thing, and only one thing, you can first record these lines, then those lines... Saves money vs a big scope. edit: Or if you really need simultaneous channels, buy several and have them record at once ;) If you h...
by cero
Thu Jul 14, 2022 2:48 pm
Forum: Megadrive/Genesis
Topic: Cart Design Questions
Replies: 70
Views: 145630

Re: Cart Design Questions

The Saleae logic16 clones are very cheap and work well, if the specs are enough for you (16 channels etc). IIRC I paid under 20$ from ali.
by cero
Thu Jun 30, 2022 6:25 am
Forum: Hardware
Topic: Joy ID on my own controller
Replies: 2
Views: 6776

Re: Joy ID on my own controller

Probably tons, just search github for it. Usually they use a microcontroller to emulate one, soldering real buttons to GPIOs is just an extension of that.

It's all more expensive than the targeted, small chips of real controllers, but well doable yourself.
by cero
Fri May 20, 2022 6:31 am
Forum: Demos
Topic: WIP Satan Claus - Mega Drive / Genesis / 32x
Replies: 9
Views: 17804

Re: WIP Satan Claus - Mega Drive / Genesis / 32x

The current pics lack a bit in contrast. Try making the BG elements darker so they can be more clearly told apart from FG.
by cero
Thu May 12, 2022 5:54 am
Forum: SGDK
Topic: How do I use the Spade character?
Replies: 4
Views: 4871

Re: How do I use the Spade character?

'z'+1 is a char, not a part of a string.

Code: Select all

const char foo[] = { 'h', 'e', 'l', 'l', 'o', 'z' + 1, '\0' };
by cero
Wed May 11, 2022 7:42 am
Forum: SGDK
Topic: How do I use the Spade character?
Replies: 4
Views: 4871

Re: How do I use the Spade character?

'z'+1 or {
by cero
Tue Mar 22, 2022 8:17 am
Forum: SGDK
Topic: SRAM to tackle lack of RAM?
Replies: 4
Views: 4947

Re: SRAM to tackle lack of RAM?

Store a list of the filled pixels. As ranges, very little space taken.
by cero
Mon Mar 21, 2022 6:04 pm
Forum: SGDK
Topic: SRAM to tackle lack of RAM?
Replies: 4
Views: 4947

Re: SRAM to tackle lack of RAM?

The battery is not used when the console is on. It's for keeping power when the console is off.

You might also use a command undo queue, instead of storing pixel-level changes.
"plot black at 12,23"
"fill area at 15,5 with green"

You'd just store the inverse commands, taking very little ram.
by cero
Thu Feb 03, 2022 4:08 pm
Forum: SGDK
Topic: Best way to access nibbles
Replies: 2
Views: 5290

Re: Best way to access nibbles

Union-struct is the nicest way, but nibble access won't be fast no matter what.
by cero
Tue Jan 25, 2022 5:28 pm
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40353

Re: Untitled 32X Super Scalar Project

Oh, didn't know it was write-through, thanks for the correction. And sad that you bowed to the crazies. I would have kept the words and banned the crazies.
by cero
Tue Jan 25, 2022 8:28 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40353

Re: Untitled 32X Super Scalar Project

Uncached on both cpus, or manual syncs between.
by cero
Fri Jan 14, 2022 5:51 pm
Forum: Exodus
Topic: Timing analysis using Exodus
Replies: 8
Views: 5143

Re: Timing analysis using Exodus

If you don't need cycle-accurate reports, you can easily do visual profiling on any emulator or even real hw. VDP_setEnable(0) and (1) around the code, and you will see on screen how many lines it takes. One line is about 500 cpu cycles. This is a quick and easy method that lets you see, for example...
by cero
Wed Jan 05, 2022 11:39 am
Forum: Super 32X
Topic: Untitled 32X Super Scalar Project
Replies: 34
Views: 40353

Re: Untitled 32X Super Scalar Project

Code: Select all

cpu 1 ======------
cpu 2 ------======
How useful ;)
by cero
Thu Dec 23, 2021 9:38 am
Forum: Megadrive/Genesis
Topic: Gens r57shell mod- is it a back door.
Replies: 3
Views: 7114

Re: Gens r57shell mod- is it a back door.

Use open source programs and you don't have to guess.