Search found 2810 matches

by Chilly Willy
Sun Jan 19, 2020 1:31 pm
Forum: SGDK
Topic: All my VDP_drawText() are gone with SGDK 1.4.1
Replies: 2
Views: 119

Re: All my VDP_drawText() are gone with SGDK 1.4.1

Thanks for posting the fix. That may help someone else in the future who runs into the same thing.
by Chilly Willy
Wed Jan 15, 2020 10:43 pm
Forum: SGDK
Topic: Horizontal Scroll not showing all background image
Replies: 19
Views: 1557

Re: Horizontal Scroll not showing all background image

Oh, one other issue - you set the horz scroll, THEN you check if the value is > 1023 and wrap around. You should be checking for the wrap before setting the scroll offset. The way you have it now, for one frame, the hscroll regs will be -1024 while the tiles will be set to 0.
by Chilly Willy
Wed Jan 15, 2020 10:29 pm
Forum: Hardware
Topic: Cartridge slot questions
Replies: 22
Views: 669

Re: Cartridge slot questions

Wow, the video is pretty damn linear. And it does make sense that the pwm would clip before reaching maximum - when dealing with RC filtered waves, there's a region towards the center that has better linearity that is lost towards the ends. When doing "one bit" audio waves, it's always recommended t...
by Chilly Willy
Wed Jan 15, 2020 1:52 pm
Forum: SGDK
Topic: Horizontal Scroll not showing all background image
Replies: 19
Views: 1557

Re: Horizontal Scroll not showing all background image

This line...

Code: Select all

offsetTILES = offset>>3 % 127;
Did you mean to do

Code: Select all

offsetTILES = (offset>>3) % 127;
Remember that % is above >> in precedence. Or did you really want this

Code: Select all

offsetTILES = offset>>3 & 127;
% is mod, so % 127 gives 0 to 126. Bitwise AND is also below >> in precedence.
by Chilly Willy
Fri Jan 10, 2020 10:07 pm
Forum: Cartridge
Topic: Designing MD sdcard flashcart for fun, advice?
Replies: 12
Views: 3279

Re: Designing MD sdcard flashcart for fun, advice?

You did great for your first attempt. Bummer about /AS, but the next rev should be even better. Lessons learned and all that jazz... :lol:
by Chilly Willy
Fri Jan 10, 2020 1:16 am
Forum: Hardware
Topic: Cartridge slot questions
Replies: 22
Views: 669

Re: Cartridge slot questions

I'll work on that tomorrow. Should be pretty easy. EDIT: Okay, here's my quick test. Fusion seems to have some noise in the PWM audio, though there really shouldn't be any. It's 44.1kHz with a range of 512. PAL allows a max range at 44.1kHz of 517, so it's not quite absolute full range. I did color ...
by Chilly Willy
Mon Jan 06, 2020 11:53 pm
Forum: Hardware
Topic: Cartridge slot questions
Replies: 22
Views: 669

Re: Cartridge slot questions

I would assume that the CMOS 32X custom chip output a 5V (4.whatever-ish V) square wave. That is fed to an 8.2 Kohm series resistor which then feds a couple caps (for filtering and DC removal), with a 3 Kohm resistor going to ground. 0.1uF PWM ----------8.2K----------------------||------------------...
by Chilly Willy
Sun Jan 05, 2020 10:34 pm
Forum: Hardware
Topic: Cartridge slot questions
Replies: 22
Views: 669

Re: Cartridge slot questions

I can tell you for certain the cart audio lines work like normal in SMS mode. The MD Neo Myth cart uses them for the YM2413 output when enabled for use with FM-supported games. Makes sense as they're just tied straight into the audio mixing. Also, however the cart adapters work, the YM works from th...
by Chilly Willy
Sat Dec 21, 2019 7:21 pm
Forum: Demos
Topic: Goof Troop UNNOFICIAL v Dez/2019
Replies: 6
Views: 2373

Re: Goof Troop UNNOFICIAL v Dez/2019

Whoa, nice conversion. Well, one stage down. Don't remember how many it had.
by Chilly Willy
Fri Dec 13, 2019 2:31 pm
Forum: Demos
Topic: Mode 7 demo for Genesis/MD
Replies: 56
Views: 27988

Re: Mode 7 demo for Genesis/MD

Very cool. I'm constantly amazed at what people manage to do on these old consoles.
by Chilly Willy
Tue Dec 03, 2019 10:52 pm
Forum: Demos
Topic: Sonic And the Mystic Gems (Demo)
Replies: 1
Views: 647

Re: Sonic And the Mystic Gems (Demo)

Very nice! I like how you play a different character each act. Really mixes things up. Nice level design, too.
by Chilly Willy
Thu Nov 28, 2019 2:49 pm
Forum: SGDK
Topic: m68k at risk of being dropped from gcc 11
Replies: 7
Views: 1638

Re: m68k at risk of being dropped from gcc 11

Wasn't me. I did look into it, but it got claimed before I could even start. :lol: I imagine someone who works on gcc a lot and is familiar with the internals did it. Compilers are complex beasts, and gcc is one of the more complex out there.
by Chilly Willy
Wed Nov 27, 2019 2:01 pm
Forum: SGDK
Topic: m68k at risk of being dropped from gcc 11
Replies: 7
Views: 1638

Re: m68k at risk of being dropped from gcc 11

With as much money as that bounty had, SOMEONE was going to do it. 8)
by Chilly Willy
Tue Nov 26, 2019 10:57 pm
Forum: SGDK
Topic: Static Voids after or before int MAIN()?
Replies: 2
Views: 326

Re: Static Voids after or before int MAIN()?

It's fundamental part of C called prototyping. It gives the compiler all the info needed so that when the function is encountered later, it can generate the proper code to call it. If you define the function before it is used (wherever in the code that is), it's self-prototyping - the definition is ...
by Chilly Willy
Tue Nov 26, 2019 3:00 pm
Forum: Tools
Topic: Aseprite Mega Drive Digitizer
Replies: 10
Views: 1997

Re: Aseprite Mega Drive Digitizer

Good point. Emulators tend to make things perfect... perfect ladders on DACs in particular. It's not as noticeable in the sound, but it is in the video, even if subtle. And even when an emulator tries to blur a line to simulate composite blending, it's not going to have the same filtering and phase ...