Search found 1234 matches
- Mon Apr 09, 2007 11:29 pm
- Forum: Development
- Topic: no more updates...
- Replies: 6
- Views: 6453
- Thu Apr 05, 2007 8:53 pm
- Forum: ZSNES Talk
- Topic: ZSNES + ROM in one .exe?
- Replies: 20
- Views: 6906
- Wed Apr 04, 2007 2:53 am
- Forum: Bug Reports/Feature Requests
- Topic: 512*448 snapshots?
- Replies: 10
- Views: 4027
- Mon Apr 02, 2007 1:43 pm
- Forum: Development
- Topic: worthless code?
- Replies: 10
- Views: 9376
- Sun Apr 01, 2007 4:28 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
- Sun Apr 01, 2007 3:35 am
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
Well, I'm building my modified ZSNES with whatever version of g++ zget downloads, and assuming it uses cdecl seems to be working, with at least 6 parameters. I haven't tried it on Linux, though, and I don't have FreeBSD. I just realized that Mac OS X could be a problem, with it's 16-byte stack align...
- Sun Apr 01, 2007 1:29 am
- Forum: Tech Talk
- Topic: How would you destroy DAT backups?
- Replies: 25
- Views: 16881
- Sat Mar 31, 2007 10:57 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
Is cdecl the same across all those compilers you mentioned? What I was thinking of doing is just having a set of global ints named param1, param2, etc. Stuff the args in there, then make the first lines of the C function something like unsigned char *vidBuffer = (unsigned char *)param1; int x1 = par...
- Sat Mar 31, 2007 6:47 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
If that's really a char*, then I'm sure you agree this is preferable: ;) memset(dest, color, width); Ooh, you're right. I got too caught up in being clever to notice that. D'oh. I'm passing it in as int and then casting to char because the assembly code apparently kept the color in al, and I didn't...
- Sat Mar 31, 2007 2:47 pm
- Forum: Insane Chatter
- Topic: What are you listening to right now?
- Replies: 1859
- Views: 1000050
- Sat Mar 31, 2007 2:21 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
Good point. The only reason I do that is because, if the compiler doesn't recognize it's only a counter and optimize it, it's slightly faster than a count-upward loop, mainly because the x86 doesn't have many registers. Same thing with pre- vs. post-increment - unless the compiler recognizes it's on...
- Sat Mar 31, 2007 6:46 am
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
Some people would use
but I find it too easy to overlook what is actually happening here. I try to avoid all cases which would require use of post-increment or decrement, and split them into multiple lines. More code, but more clear.
Code: Select all
for( ctr = width; ctr > 0; --ctr ) *dest++ = color;
- Sat Mar 31, 2007 3:03 am
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
One more thing. I am trying to use a macro like so: EXTSYM ccall_retval ; ccall FuncName, return reg32, param1, param2, param 3... ;C: Last-1st, stack cleanup ; puts return value in specified 32-bit register and leaves all other registers unmodified %macro ccall 2-* %define _f %1 %define _r %2 %assi...
- Sat Mar 31, 2007 2:39 am
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
- Fri Mar 30, 2007 10:58 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
Alright. I'm starting on some of the easier stuff. I'll post some patches in a bit.
As a question of style, which would you like better?
or
As a question of style, which would you like better?
Code: Select all
for( ctr = width; ctr > 0; --ctr ) {
*dest = color;
++dest;
}
Code: Select all
for( ctr = width; ctr > 0; --ctr, ++dest ) *dest = color;
- Wed Mar 28, 2007 9:38 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
I guess I missed a lot while I've been gone. I remember an announcement a long time ago, although that was for a Qt or GTK GUI. So is this effort actually underway? As in, past the planning stage? I still might do at least some of it for personal edification. Working with this code is not terribly f...
- Wed Mar 28, 2007 9:20 pm
- Forum: Development
- Topic: Is anybody working on GUI ASM -> C?
- Replies: 24
- Views: 18155
Is anybody working on GUI ASM -> C?
So I'm in an Intro to Computer Architecture class right now, and we happen to be studying x86 assembly. So now I have some skills, and I want something more than our simple assignments to work on, and I'm back here, as Nach or whoever predicted I would be eventually. If nobody's started, I'll dive i...
- Thu Jul 20, 2006 12:28 am
- Forum: Development
- Topic: Progress on reducing HQ2x to fit in L1 cache
- Replies: 95
- Views: 70804
Alright. Pentium M 730 (Dothan, 1.6 GHz) w/ 32/32 KB L1 data/code cache. Compiled with MinGW-GCC 4.1.1. gcc -Os -march=pentium-m MMXdiff.c -o MMXdiff.exe Ticks: -1124683956 Right: 1073741824 Wrong: 0 Ticks: -1271181139 Right: 1073741824 Wrong: 0 Ticks: -2101298327 Right: 1073741824 Wrong: 0 Ticks: 4...
- Wed Jul 19, 2006 1:13 am
- Forum: Development
- Topic: Progress on reducing HQ2x to fit in L1 cache
- Replies: 95
- Views: 70804
Re: Progress on reducing HQ2x to fit in L1 cache
Also, if people can run the MMX Difference code on their own computers on as many different systems as possible, I'd appreciate it. I only have an Athlon 64 to test on, and that can be heavilly lopsided for testing purposes. Especially I'd appreciate results from earlier CPU's. What are you compili...
- Wed Jul 19, 2006 12:31 am
- Forum: DeJap Projects
- Topic: Translation Release #50 - Cave Story
- Replies: 202
- Views: 176009
Yeah... stupid copy/paste error.
http://rapidshare.de/files/26232087/Cav ... 0.zip.html
And my first attempt at a GUI version:
http://rapidshare.de/files/26232126/Cav ... 3.zip.html
http://rapidshare.de/files/26232243/dlls.zip.html
http://rapidshare.de/files/26232087/Cav ... 0.zip.html
And my first attempt at a GUI version:
http://rapidshare.de/files/26232126/Cav ... 3.zip.html
http://rapidshare.de/files/26232243/dlls.zip.html
- Mon Jul 03, 2006 10:25 pm
- Forum: DeJap Projects
- Topic: Translation Release #50 - Cave Story
- Replies: 202
- Views: 176009
- Sat Nov 26, 2005 8:46 pm
- Forum: Controller Help
- Topic: Making USB controler
- Replies: 12
- Views: 10023
- Sat Nov 26, 2005 2:48 am
- Forum: Development
- Topic: ZSNES Windows Installer Project
- Replies: 60
- Views: 36947
- Fri Nov 25, 2005 12:15 am
- Forum: Emulators
- Topic: Nestopia 1.39
- Replies: 374
- Views: 237005
- Thu Nov 24, 2005 7:53 pm
- Forum: Development
- Topic: ZSNES Windows Installer Project
- Replies: 60
- Views: 36947