Search found 49 matches

by hector
Wed Jun 14, 2006 9:57 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

tehnick, I have a pretty good idea why you're experiencing these problems. Were you following the discussion earlier on where I said I fixed the nasm bug? Well, you'll need to use a bug-fixed copy of nasm too! Get a copy of latest CVS nasm. Then, apply this patch: --- output/outmacho.bak 2006-06-14 ...
by hector
Wed Jun 14, 2006 9:43 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Just made a startling discovery. malloc_size appears to be a special name. Because if we change the variable name to malloc_siz for instance, the resulting zsnes executable works fine (this is with the patch reverted). Nach, can you either rename malloc_size to malloc_siz, or remove the malloc wrapp...
by hector
Wed Jun 14, 2006 9:30 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Just a note regarding the linker flag -read_only_relocs: With this set to suppress, the wrappers for getchar, putchar and also malloc can be removed. However, this flag can also hide errors that crash zsnes. If the following change is reverted Index: uic.c ===========================================...
by hector
Wed Jun 14, 2006 4:47 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Hi tehnick, no I haven't updated the patch, simply because Google Pages doesn't work with Safari, and I don't want to install Firefox. I can only update it when I get access to a Windows machine. If you examine the rejected hunks you can work out how to patch it by hand. Otherwise you can use the pa...
by hector
Wed Jun 14, 2006 9:52 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

You'll probably still require the 'section .data' at the end of macros.mac.
by hector
Wed Jun 14, 2006 12:02 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

The patch is still valid for the current revision.
by hector
Tue Jun 13, 2006 11:38 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Index: macros.mac =================================================================== --- macros.mac (revision 3183) +++ macros.mac (working copy) @@ -63,3 +63,6 @@ %macro ALIGN16 0 times ($$-$) & 1Fh nop ; Long word alignment %endmacro + +; Ensure data section precedes bss if any +section .dat...
by hector
Tue Jun 13, 2006 10:03 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Great news! I've found the bug in nasm which was messing up the relocation info and have sent this information to Apple. Therefore the EXTSYM workarounds in chips/fxtable.asm and chips/dsp1proc.asm are not needed. Nach, when are the other parts of my patch going to be submitted? After all, they prod...
by hector
Tue Jun 13, 2006 6:48 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

It may be possible, but I haven't investigated it.

The Windows port is able to do stretch modes and it doesn't use OpenGL I think. Anyway I'll work on it after getting NASM working properly.
by hector
Tue Jun 13, 2006 5:39 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

I don't think OpenGL will be available, and it's not really needed.
by hector
Tue Jun 13, 2006 7:57 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

I think the .app bundle will contain libSDL so that no extra downloading will be required on the user's part. I believe that a commit by Grinvader recently made GUI settings save fubar. See https://zsnes.bountysource.com/svn/!revision/3139 . There are various sizes of icon in the source, the highest...
by hector
Mon Jun 12, 2006 9:26 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

1) Will ZSNES work on a Mac without any X11 framework libraries? Yes. Even SDL doesn't require X11. 2) Will there be need for special features for Mac users. .app package, to include SDL library and icon. 3) This will be using the linux codebase correct? Yes. 4) Will someone be interested in becomi...
by hector
Sun Jun 11, 2006 7:17 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Yes, enabling dynamic-no-pic still produces a code alignment warning.

I'm not sure you should worry too much about the registers, as the emulation core works fine for example.
by hector
Sun Jun 11, 2006 6:25 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Nach wrote:Any reason you removed -mdynamic-no-pic ?
It raised the code alignment runtime warning.
by hector
Sun Jun 11, 2006 5:56 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Nach wrote:And I would very much like to see this patch.
See post above yours.
by hector
Sun Jun 11, 2006 5:49 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Zsnes developers, please apply the patch to be found here:

http://hectorchu.googlepages.com

Mac Aficionados, please test the binary found on the same page.
by hector
Sun Jun 11, 2006 4:34 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

What i want to know is, how did you find out what line to change where? Blatant luck? Yes, of course there's an element of that. But gdb is a great help as well. And it takes code reading skill too. But it's not necessary to understand all the code, only tiny parts of it. It's just possible that th...
by hector
Sun Jun 11, 2006 3:59 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

And now Mario Kart works too. http://img147.imageshack.us/img147/2270/picture43rt.th.png In both cases the problem was caused by some fault in nasm on OSX, which I can't really articulate since I don't really understand the reasons myself. By moving around the EXTSYM lines in two files the bug appea...
by hector
Sun Jun 11, 2006 9:34 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Super FX now working. http://img88.imageshack.us/img88/4859/picture17su1.th.png Now working on Mario Kart. If anyone can provide pointers to where I can find hosting I can share the patch and the executable with you guys. Regarding Macbooks, the one I have has no problems, the trackpad does not disa...
by hector
Sat Jun 10, 2006 6:23 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Deathlike2 wrote:There's a chance the SuperFX rom is interleaved.. use NSRT to check it out.
The rom works under Windows.
by hector
Sat Jun 10, 2006 4:40 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

Or perhaps I should say, Super FX doesn't. :P

Image
by hector
Sat Jun 10, 2006 11:17 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

GUI works perfectly now. Emulation doesn't :x
by hector
Fri Jun 09, 2006 11:32 pm
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

http://img324.imageshack.us/img324/3703/picture12pe.th.png This result was reached by modifying gui.asm, moving the lines %include "gui/guimisc.inc" %include "gui/guimouse.inc" %include "gui/guiwindp.inc" %include "gui/guikeys.inc" %include "gui/guicheat...
by hector
Fri Jun 09, 2006 1:09 am
Forum: Development
Topic: ZSNES on Intel Mac, further progress
Replies: 146
Views: 107278

ZSNES on Intel Mac, further progress

In earlier attempts the executable would crash with an illegal instruction exception because in dyld_stub a SSE instruction raises this exception as the stack is not aligned to 16 bytes. Using the new -mstackrealign parameter to gcc, this particular problem is mitigated. I will probably do more work...