Search found 1234 matches

by Noxious Ninja
Mon Apr 09, 2007 11:29 pm
Forum: Development
Topic: no more updates...
Replies: 6
Views: 6453

True, but I'll back him up on the not-resizing-properly thing.
by Noxious Ninja
Thu Apr 05, 2007 8:53 pm
Forum: ZSNES Talk
Topic: ZSNES + ROM in one .exe?
Replies: 20
Views: 6906

You could almost certainly write a small launcher with NSIS and compile everything together in an NSIS archive. The launcher would extract things to a temp directory, run, then clean up. It might be more trouble than it's worth, though.
by Noxious Ninja
Mon Apr 02, 2007 1:43 pm
Forum: Development
Topic: worthless code?
Replies: 10
Views: 9376

Deathlike2 wrote:
Clements wrote:Travel forward in time by 1 day.
Actually, you need full control of time. You will need a Time Machine (preferably one that can fly), a Clone of yourself, and an Egg.
It took me a minute to get that reference. Heh.
by Noxious Ninja
Sun Apr 01, 2007 4:28 pm
Forum: Development
Topic: Is anybody working on GUI ASM -> C?
Replies: 24
Views: 18155

Except I detest relying on the effects of post-increment/decrement.
by Noxious Ninja
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...
by Noxious Ninja
Sun Apr 01, 2007 1:29 am
Forum: Tech Talk
Topic: How would you destroy DAT backups?
Replies: 25
Views: 16881

Giant stack of tapes + thermite would have been better.
by Noxious Ninja
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...
by Noxious Ninja
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...
by Noxious Ninja
Sat Mar 31, 2007 2:47 pm
Forum: Insane Chatter
Topic: What are you listening to right now?
Replies: 1859
Views: 1000050

Bungie - Oni (Bonus CD) (2001) - 06 - Loss [0:30] (MP3 @ 161kbps VBR)
by Noxious Ninja
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...
by Noxious Ninja
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

Code: Select all

for( ctr = width; ctr > 0; --ctr ) *dest++ = color;
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.
by Noxious Ninja
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...
by Noxious Ninja
Sat Mar 31, 2007 2:39 am
Forum: Development
Topic: Is anybody working on GUI ASM -> C?
Replies: 24
Views: 18155

I think my first form is more quickly comprehensible, but they're not too far apart to someone who knows C.

Your form is legal, but "dest = dest + 1" is unneeded verbosity.

BTW, I now have 21% of guitools.inc by line count converted to C.
by Noxious Ninja
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?

Code: Select all

for( ctr = width; ctr > 0; --ctr ) {
    *dest = color;
    ++dest;
}
or

Code: Select all

for( ctr = width; ctr > 0; --ctr, ++dest ) *dest = color;
by Noxious Ninja
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...
by Noxious Ninja
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...
by Noxious Ninja
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...
by Noxious Ninja
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...
by Noxious Ninja
Mon Jul 03, 2006 10:25 pm
Forum: DeJap Projects
Topic: Translation Release #50 - Cave Story
Replies: 202
Views: 176009

by Noxious Ninja
Sat Nov 26, 2005 8:46 pm
Forum: Controller Help
Topic: Making USB controler
Replies: 12
Views: 10023

The X-Box controller is USB with a different connector. Therefore, all you have to do is swap out the connector, and you get a USB HID-compliant input device.

For an SNES controller -> USB mod, you would have to build an adapter with a microcontroller in it to adapt the signals.
by Noxious Ninja
Sat Nov 26, 2005 2:48 am
Forum: Development
Topic: ZSNES Windows Installer Project
Replies: 60
Views: 36947

LDAWG wrote:Maybe I can even get the source code from him, but it may be a bad idea, because this will open the zbattle.net Servers to hacker attacks.
If it's well-designed, having the source available will not affect server integrity at all.
by Noxious Ninja
Fri Nov 25, 2005 12:15 am
Forum: Emulators
Topic: Nestopia 1.39
Replies: 374
Views: 237005

- Added support for RAR and 7-Zip files.
Someone get this man some JMA code, stat!
by Noxious Ninja
Thu Nov 24, 2005 7:53 pm
Forum: Development
Topic: ZSNES Windows Installer Project
Replies: 60
Views: 36947

Something that has always ticked me off: the end user does not have to agree to the GPL to be allowed to use the program. The GPL only comes into play when one wishes to distribute the program.