Search found 26 matches

by bl0ckeduser
Thu Nov 17, 2011 7:43 pm
Forum: Snes9x Public Development Forum
Topic: Function pointers for opcode execution
Replies: 1
Views: 11512

Nevermind. It seems optimizing compilers do a very good job of reducing this overhead. For example with MSVC 2010 the generated assembly for opcode calling is: (*Opcodes[Op].S9xOpcode)(); 004339F5 8B 0C B7 mov ecx,dword ptr [edi+esi*4] 004339F8 FF D1 call ecx and the only overhead in opcode implemen...
by bl0ckeduser
Wed Nov 16, 2011 11:31 pm
Forum: Snes9x Public Development Forum
Topic: Function pointers for opcode execution
Replies: 1
Views: 11512

Function pointers for opcode execution

I'm not a very experienced programmer, so the following question/suggestion may come as silly. Looking at the Snes9X source code, I came across an interesting and important line: (*Opcodes[Op].S9xOpcode)(); It seems function pointers are used for executing opcodes. I am tempted to ask, wouldn't a sw...
by bl0ckeduser
Wed Nov 16, 2011 12:06 am
Forum: Snes9x Tech Support and Bug Tracking
Topic: "About Snes9x" dialog wonky (1.53/Win)
Replies: 6
Views: 14747

Nice. Thanks for the merge.
by bl0ckeduser
Tue Nov 15, 2011 1:17 am
Forum: Snes9x Tech Support and Bug Tracking
Topic: "About Snes9x" dialog wonky (1.53/Win)
Replies: 6
Views: 14747

Okay, I've sent a pull request on GitHub. This is what the fixed dialog box looks like:

Image

Thanks for pointing this out.
by bl0ckeduser
Tue Nov 15, 2011 12:13 am
Forum: Snes9x Tech Support and Bug Tracking
Topic: "About Snes9x" dialog wonky (1.53/Win)
Replies: 6
Views: 14747

Hello, I'm a somewhat noob programmer, but I think I can fix this one. I'll be sending in a patch.