Hacker Newsnew | past | comments | ask | show | jobs | submit | lefticus's commentslogin

Turbo styled theme would be awesome


This was another reason I went the x86->6502 route instead of just a 6502 backend for llvm - it could plausibly work with any code. Let me know what you find.


Functional calls are not handled, which is part of the problem. There are several working examples in the x86-to-6502 repository. Please add more examples and help with additional translation.


I was unable to get any of the existing 3 llvm 6502 backends to produce reasonable code. Which is why I went this route. I meant to mention that in the video...


There's also https://github.com/puppeh/gcc-6502 and https://github.com/puppeh/gcc-6502-bits to get 6502 directly out of gcc.


I don't believe I found those, thank you.


By reasonable code do you mean performant, or just plain working?


If I had to guess, now knowing that there's a crushing stack size limitation for 6502 CPU, probably "just plain working."


Here, the are spec'd as unused bits returning 1: http://www.antimon.org/code/vic2.html


Ah, thank you. It appears it is only a 4 bit memory location and the spec says the unused bits always return 1's.


It did not explain why, I'm assuming it's a property of the VIC, but I haven't looked into it yet.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: