convert C code back to 6502 assembly code

Other Computers and Game Systems

Moderator: Moderators

Post Reply
terry
Vic 20 Newbie
Posts: 10
Joined: Sun Dec 30, 2007 5:21 am

convert C code back to 6502 assembly code

Post by terry »

I have some C code that I want to convert to 6502 assembly code but in text format, is this even possible? If so is there PC software that I could download that would perform this task?

-terry
User avatar
Schema
factor
Posts: 1430
Joined: Tue Mar 23, 2004 7:07 am
Website: http://www.jammingsignal.com
Location: Toronto, Ontario

Post by Schema »

"convert to 6502 assembly code" - as in compiling it to 6502 code?

I think you're going to end up with a two-step process - 1. Compile the C code into a 6502 binary, and then 2. disassemble the 6502 code into text.

For 1. there are plenty of C->6502 compilers out there, i.e. CC65 http://www.cc65.org/

For 2. someone just asked about 6502 dissassemblers on comp.sys.cbm, and someone linked to dxa, available here: http://www.floodgap.com/retrotech/xa/
terry
Vic 20 Newbie
Posts: 10
Joined: Sun Dec 30, 2007 5:21 am

convert C code to 6502 assy

Post by terry »

Yes I do have cc65.

Will Concept plus do the same, (Geoprogrammer update).

terry
Post Reply