Search the web
Sign In
New User? Sign Up
staticrecompilers · Static Binary Translation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
6502 recompiler news   Message List  
Reply | Forward Message #324 of 326 |
Re: [staticrecompilers] 6502 recompiler news

> > Remind me how to run this... I tried recomp -template
> > templates\template.apple1 -disasm apple1.asm but there's no output,
> > just a warning about an entry vector, and an unknown opcode at E27F...
> and when I made the $FF opcode into data, it generated an output file just
> fine, and the few missing code sections all look to be there now...

Sweet! Can you send me the latest template?

> My copy of the 6502.c must be out of date, the assertion line no doesn't
> match up with the code. Though I suspect it's the final else in AST6502Misc
> that's catching it. But not enough info to tell which opcode cover is
> missing.
>
> If you could email me the most recent code drop, I can put some hours into
> it in the car while we're driving north... of all the supported
> architectures, the 6502 is the one I've done the most coding in, I shouldn't
> have too much difficulty filling in a missing opcode or two...

I haven't implemented the opcodes for anything more than a disassembly, so
if you try to emit C code, you'll get assertions - guaranteed.

Anyway, here's my current sandbox:

http://www.synthcom.com/~nb/OrionV0.28Src.zip

Be forewarned it's a sandbox drop, not really well tested, and I threw
those extra instructions in when you posted the email, so beware. ;-)

> I had forgotten quite how close to completion this thing was, and how slick
> it was... it's quite fun working on it again.

Hehehe. Well, it actually does work for Ms Pacman and Asteroids. I even
gave a demo to VMWare in 2005 on it. It was fun watching a room full of
academics argue over its value. ;-)

-->Neil

----------------------------------------------------------------------------
C. Neil Bradley - EVERYBODY KERNEL PANIC!



Sun Jul 5, 2009 12:49 am

nb@...
Send Email Send Email

Forward
Message #324 of 326 |
Expand Messages Author Sort by Date

Michael Steil, the guy who did the Pear dynarec for Macs and who discussed the recompiler howto in his document, has written a recompiler for Apple I and...
Graham Toal
graham_toal
Offline Send Email
Jul 3, 2009
8:51 pm

... As far as I understand it, SSA is part of LLVM so using LLVM provides you with SSA optimised code for free, which is good. On the other hand, I prefer a...
Laurent DESNOGUES
ldesnogu
Offline Send Email
Jul 4, 2009
11:15 am

... Are you referring to AST + target or just target? I would think the AST route is the way to go. ... Does someone have a copy of the Apple 1 EPROM? I'd be...
Neil Bradley
nb@...
Send Email
Jul 4, 2009
6:59 pm

... Of course! LLVM is a compiler back-end - you feed it your AST and it does all the optimisations on the AST for you, and has a choice of target code ...
Graham Toal
graham_toal
Offline Send Email
Jul 4, 2009
9:00 pm

... It's looking for the vectors at 0xfff8-0xffff, which is probably all 0s unless you load something there. Try adding: loadimage 0xf000,...
Neil Bradley
nb@...
Send Email
Jul 4, 2009
9:04 pm

... Well, that wouldn't have worked as it hit several opcodes that weren't implemented. Here is a new recomp.exe, template, and ROM image for the Apple1: ...
Neil Bradley
nb@...
Send Email
Jul 4, 2009
10:10 pm

... That's pretty good! Comparing it manually to http://www.brouhaha.com/~eric/retrocomputing/apple/apple1/basic/a1basic.dis all I've seen so far is a missing...
Graham Toal
graham_toal
Offline Send Email
Jul 5, 2009
12:06 am

... and when I made the $FF opcode into data, it generated an output file just fine, and the few missing code sections all look to be there now... My copy of...
Graham Toal
graham_toal
Offline Send Email
Jul 5, 2009
12:41 am

... Sweet! Can you send me the latest template? ... I haven't implemented the opcodes for anything more than a disassembly, so if you try to emit C code,...
Neil Bradley
nb@...
Send Email
Jul 5, 2009
12:50 am

... just ... http://www.gtoal.com/apple1/template.apple1 The updated disassembly is http://www.gtoal.com/apple1/apple1.asm.txt ... so ... Well, first priority...
Graham Toal
graham_toal
Offline Send Email
Jul 5, 2009
1:53 am

... Well, that's lucky! Usually it completely goes off into the weeds when it attempts to disassemble data. ... The 6502 module wasn't complete and probably...
Neil Bradley
nb@...
Send Email
Jul 5, 2009
12:44 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help