Search found 399 matches

by Chilly Willy
Wed Mar 29, 2017 10:56 am
Forum: Programming Discussion
Topic: The case of the divide by zero
Replies: 17
Views: 2104

Re: The case of the divide by zero

As said in earlier posts, you'll have to modify kos to do your own fp exception handler. The built-in one isn't designed for user exception code... at least, not for fp exceptions.
by Chilly Willy
Fri Mar 24, 2017 11:04 am
Forum: Programming Discussion
Topic: Better understand the TA Bining Process & rasterization
Replies: 20
Views: 3103

Re: Better understand the TA Bining Process & rasterization

bogglez wrote:The solution is to draw more local/smaller triangle strips.
Tessellation - the cure for all graphical ills. :lol:

At least, it was on older consoles, particularly the ones without perspective correct mapping.
by Chilly Willy
Wed Mar 22, 2017 11:17 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Reicast (Android) Crashing
Replies: 2
Views: 971

Re: Reicast (Android) Crashing

Wrong forum. You want the Reicast forum: viewforum.php?f=86
by Chilly Willy
Sat Mar 18, 2017 10:38 am
Forum: Hardware Modification and Repair
Topic: Does a dual analog Dreamcast controller exist?
Replies: 25
Views: 20557

Re: Does a dual analog Dreamcast controller exist?

The Maple controller spec does include two analogue sticks, and two digital sticks. Look at the definition of the controller packet: /* Raw controller condition structure */ typedef struct { uint16 buttons; /* buttons bitfield */ uint8 rtrig; /* right trigger */ uint8 ltrig; /* left trigger */ uint8...
by Chilly Willy
Thu Mar 16, 2017 9:57 am
Forum: Programming Discussion
Topic: pthread and fs_read slowdown
Replies: 8
Views: 1593

Re: pthread and fs_read slowdown

Are you running KOS in cooperative mode? If so, you need to sleep in the threads (or at least bump the scheduler) periodically to allow time to the other threads. Especially if one thread is just busy-looping as you mention in your last post - that will kill other threads unless you have some kind o...
by Chilly Willy
Wed Mar 08, 2017 10:46 am
Forum: Programming Discussion
Topic: Rebuilding KOS Again
Replies: 11
Views: 1754

Re: Rebuilding KOS Again

Quite right, so my thanks to you and Corbin for your Windows usage. It's making things better... for some folks in any case. :grin: Having Windows support is a consideration for some people. I know a few folks that wanted to get into programming for certain older consoles like the N64 who were havin...
by Chilly Willy
Tue Mar 07, 2017 7:30 pm
Forum: Programming Discussion
Topic: Rebuilding KOS Again
Replies: 11
Views: 1754

Re: Rebuilding KOS Again

Yeah, Windows can be persnickety with cross-compiling. I know one guy who actually setup linux in a VM under Windows because that was easier (for him) than mingw/cygwin. :grin:
by Chilly Willy
Tue Mar 07, 2017 5:56 pm
Forum: Programming Discussion
Topic: Rebuilding KOS Again
Replies: 11
Views: 1754

Re: Rebuilding KOS Again

This looks like the main problem:
WARNING: 'makeinfo' is missing on your system.
You're missing a dependency. That should be part of the texinfo package. Both msys and cgywin should have that package available since so many things require it.
by Chilly Willy
Mon Mar 06, 2017 1:13 pm
Forum: Programming Discussion
Topic: freeglut+libEGL+libGLU ports
Replies: 21
Views: 3888

Re: freeglut+libEGL+libGLU ports

Thanks, everyone. It was helpful that my sister and oldest brother flew into town to be with us at the end. He went the way he wanted. In any case, programming (especially on these older system) has always been a comfort, so I'm working on stuff to keep myself busy to avoid becoming depressed.
by Chilly Willy
Sun Mar 05, 2017 5:31 pm
Forum: Programming Discussion
Topic: freeglut+libEGL+libGLU ports
Replies: 21
Views: 3888

Re: freeglut+libEGL+libGLU ports

Real life can be rough on free time. It's been a rough fall/winter here - my dad went into the hospital to get a stint and wound up with complications that killed him a week ago. I won't be (fully) back into the swing of things for a while.
by Chilly Willy
Wed Mar 01, 2017 5:21 pm
Forum: Programming Discussion
Topic: freeglut+libEGL+libGLU ports
Replies: 21
Views: 3888

Re: libEGL port

Ah, I see. It works with libGL to take care of many of the fiddly bits we use various things in KOS to handle right now.
by Chilly Willy
Wed Mar 01, 2017 11:52 am
Forum: Programming Discussion
Topic: freeglut+libEGL+libGLU ports
Replies: 21
Views: 3888

Re: libEGL port

Alternatively we could add the function to gl.h with __attribute__ ((deprecated)) and make it call glSwapBuffersKOS properly. Then I think libglut could #undef glutSwapBuffers and provide one of its own. That sounds like the best way to handle it. Nice job on porting libEGL! What limitations does i...
by Chilly Willy
Tue Jan 31, 2017 3:14 pm
Forum: Programming Discussion
Topic: Difficulties following toolchain tutorial
Replies: 12
Views: 1602

Re: Difficulties following toolchain tutorial

Not sure if it applies to Windows, but in linux, if you can't make a directory in /opt, it's usually because you don't have permission. I usually change the mode permissions for /opt to 777 to allow any user to do anything in /opt... which is how it should be. The default for most distros, including...
by Chilly Willy
Thu Aug 18, 2016 11:25 am
Forum: Programming Discussion
Topic: Help building Kos 2.0/Dc-chain
Replies: 37
Views: 4666

Re: Help building Kos 2.0/Dc-chain

And if it gets too hard to build in cygwin, you can always install linux in a virtual environment and build it that way. I know at least one person that did that. It's the only thing they use the VE for - building and using cross-compilers for various retro devices. BlueCrab's done a great job keepi...
by Chilly Willy
Mon Aug 15, 2016 2:47 pm
Forum: Programming Discussion
Topic: Suggested change to maple driver
Replies: 18
Views: 2716

Re: Suggested change to maple driver

Yeah, you have to be very careful about sources of info for third-party software, open source or not. That said, when do the Maple patents expire? After they expire, any and all info in them is fair game. I'll open up one of my Dream Pads and see if the chips are marked. Very often, controllers use ...
by Chilly Willy
Mon Aug 15, 2016 2:39 pm
Forum: Programming Discussion
Topic: Incorrect DMA code in KOS?
Replies: 8
Views: 1544

Re: Incorrect DMA code in KOS?

Does gas support the known DC-SH4 opcodes?
by Chilly Willy
Tue Aug 09, 2016 12:03 am
Forum: Programming Discussion
Topic: Suggested change to maple driver
Replies: 18
Views: 2716

Re: Suggested change to maple driver

Well, it can't hurt to try it. When I get the chance, I'll try sending that to the Dream Pad and see what happens.
by Chilly Willy
Sat Aug 06, 2016 2:00 pm
Forum: Programming Discussion
Topic: Suggested change to maple driver
Replies: 18
Views: 2716

Re: Suggested change to maple driver

I made a function to send the reset command: /* Send a RESET command for the given port/unit */ static void vbl_send_reset(int p, int u) { maple_device_t * dev; while(p < 0) p += MAPLE_PORT_COUNT; dev = &maple_state.ports[p].units[u]; /* Reserve access */ maple_frame_lock(&dev->frame); /* Re...
by Chilly Willy
Tue Aug 02, 2016 2:53 pm
Forum: Programming Discussion
Topic: Suggested change to maple driver
Replies: 18
Views: 2716

Re: Suggested change to maple driver

Actually, I'm wondering if it's maybe my DC and not the controller. I've tried two different Dream Pads on all the ports, and they both act the same, but hours of googling found no reports of similar issues with them. The only complaint I've found is that the dpad sucks for fighting games, and that...
by Chilly Willy
Tue Aug 02, 2016 11:22 am
Forum: Programming Discussion
Topic: Suggested change to maple driver
Replies: 18
Views: 2716

Re: Suggested change to maple driver

I didn't necessarily think you did want that to be the default action... I guess I didn't make that all that clear posting at 1:30 in the morning. :lol: That said, I'm actually glad to see that it's just as broken with official software. Reinforces my idea that it's just a 3rd party controller bein...