Search found 81 matches

by Graz
Wed Mar 12, 2014 6:36 pm
Forum: SGDK
Topic: unaligned opcodes detected in executable segment
Replies: 11
Views: 1818

Code: Select all

.rodata
       .even
tiles:
   dc.b   0xf0
   dc.b   0xf0
   dc.b   0xf0
   dc.b   0xf0 
Don't forget .text before any actual code.
by Graz
Wed Mar 12, 2014 5:03 pm
Forum: SGDK
Topic: unaligned opcodes detected in executable segment
Replies: 11
Views: 1818

Don't put data in the .text segment. Put this in .rodata.
by Graz
Tue Feb 11, 2014 12:46 am
Forum: Tools
Topic: GensKMod on Git
Replies: 32
Views: 7176

While I alread did it so many times this past month, I won't thank enough Graz who devoted so many hours to add/fix feature for this new version. Sure - no problem. I was mostly adding things that I needed. No point in hoarding. Thanks for taking the patches. Anyway, there are some caveats. The onl...
by Graz
Sat Feb 08, 2014 2:22 am
Forum: Super 32X
Topic: 32X SCI Use
Replies: 5
Views: 2300

32X SCI Use

Has anyone written any code that works with the 32X SCI interfaces in the SH2? I've been bashing on some code for a few days now and haven't gotten anywhere. I want to send data from the master to the slave. It looks like the master side of things is working (at least, it doesn't seem to be locking ...
by Graz
Mon Sep 02, 2013 6:45 pm
Forum: Tools
Topic: Profiling and debugging tools?
Replies: 12
Views: 2311

KanedaFr wrote:I never did it myself because MESS lacks the features I made GensKMod for.
Indeed. The reason that I used KMod as a base for my own private hackings is that it already had many of the features I was looking for.
by Graz
Mon Sep 02, 2013 6:43 pm
Forum: Tools
Topic: GensKMod on Git
Replies: 32
Views: 7176

If you put it up on BitBucket, I will port everything I've done of use (including the GDB stub) out of my local copy into the official tree.
by Graz
Wed Aug 28, 2013 11:25 am
Forum: Tools
Topic: Profiling and debugging tools?
Replies: 12
Views: 2311

I've never released this build of the emulator. It's got a bunch of other fixes and features. GDB support is basically just an implementation of the GDB remote debug protocol ( http://sourceware.org/gdb/current/onlinedocs/gdb/Remote-Protocol.html ). I can debug both 68Ks in a CD system and both SH2s...
by Graz
Wed Aug 28, 2013 12:59 am
Forum: Tools
Topic: Profiling and debugging tools?
Replies: 12
Views: 2311

Stef wrote:... Currently there is no emulator with GDB support.
This is my patched version of Gens:

http://youtu.be/DgboHbCGsd4
by Graz
Fri Aug 09, 2013 12:23 am
Forum: Tools
Topic: Can't find some info about Assembler tools
Replies: 14
Views: 2387

I would never write more than a few lines of code in inline assembly and I almost never combine more than one or two instructions into a single "asm volatile" block. For serious stuff, it's clearly better to use a real assembly file. However, the GCC inline assembler can to some really neat stuff: I...
by Graz
Tue Aug 06, 2013 11:25 pm
Forum: Tools
Topic: Can't find some info about Assembler tools
Replies: 14
Views: 2387

While I don't recommend inline assembly ... Not sure why. I find it quite elegant, actually - far nicer than any other compiler's inline assembly or intrinsics. For example, RLE decompressor: do { unsigned int count = *runs++; asm volatile ("subq.b #1, %0" : "+d" (count)); if (count & 128) { asm vo...
by Graz
Sat Jun 22, 2013 8:44 pm
Forum: Demos
Topic: An Exercise in Compression
Replies: 11
Views: 3495

I've posted a new revision. I've turned off the 'DAC boost' hack. I've tested this on multiple model 1 and model 2 US systems and it sounds reasonable. I was able to hear the occasional click and that has been reduced somewhat. I've uploaded some audio; https://docs.google.com/file/d/0B0bSCJ6XrdhNYV...
by Graz
Sat Jun 22, 2013 12:11 am
Forum: Demos
Topic: An Exercise in Compression
Replies: 11
Views: 3495

Re: An Exercise in Compression

I just tested on RH, it does work perfectly except for sound which seems heavily distorted because of DMA contention... I don't use DMA in this demo. It does use the undocumented "make the DAC louder" trick though. Maybe that's the issue. What hardware are you using? I have only tested on NTSC mode...
by Graz
Fri Jun 21, 2013 1:57 pm
Forum: Demos
Topic: An Exercise in Compression
Replies: 11
Views: 3495

Re: An Exercise in Compression

Give you some technical details about how you did it ? What is the size of the video and audio part ? The compressed video data is 2.3MB. There's an additional 600KB of supporting meta-data required to decompress it. Using the static dictionary means there's only 32KB of tile data. When I started t...
by Graz
Fri Jun 21, 2013 3:23 am
Forum: Demos
Topic: An Exercise in Compression
Replies: 11
Views: 3495

An Exercise in Compression

I'd been offline for a while and when I came back, I saw http://gendev.spritesmind.net/forum/viewtopic.php?t=1229 . Impressive, but I was bummed that I couldn't play it all the way through on real hardware due to lack of access to an 8MB flash cart. Thus, I set about my exercise in compression. This...
by Graz
Sun Jun 10, 2012 12:43 am
Forum: Hardware
Topic: RGB FTW
Replies: 4
Views: 3194

RGB FTW

It's been ages since I posted... Anyway, I did an RGB mod to one of my model 2 systems and ended up adding a VGA connector to it. https://lh5.googleusercontent.com/-WOXXUdx1e-A/T9PPvXj0fyI/AAAAAAAAACY/ufAxAmFDRkY/s1203/gensisII_VGA.JPG The mod's pretty simple - it's just decoupling capacitors and 75...