nedoPC.org

Community of electronics hobbyists established in 2002

...
Atom Feed | View unanswered posts | View active topics It is currently 14 Nov 2018 14:03



Reply to topic  [ 6 posts ] 
Декопилятор Z80 / 8080 / 6502 в Си. 
Author Message
Senior

Joined: 03 Jan 2017 09:58
Posts: 136
Location: SPb
Reply with quote
Скучно. Хочется найти задачу, которой будет интересно заниматься. Думаю, может сделать декомпилятор, который позволит делать красивый и понятный код на Си?

Я хоть и знаю ассемблер и писал даже компилятор, но мой мог просто отказывается переваривать чужие программы на ассемблере. А в чужие программы на Си я вникаю очень быстро.


22 Feb 2018 05:41
Profile WWW
Senior

Joined: 18 Nov 2013 16:15
Posts: 193
Location: все оттуда ;)
Reply with quote
IDA в помощь ;)


22 Feb 2018 08:48
Profile
Senior

Joined: 03 Jan 2017 09:58
Posts: 136
Location: SPb
Reply with quote
VGrad wrote:
IDA в помощь ;)


Я могу любую 8 битную игру в IDA поделить на данные, код, подпрограммы. Найти какие то нужные переменные. Но вот потом всё равно всеё картины не вижу. Полная картина - это когда ты видишь все баги, фичи и можешь написать аналог.


22 Feb 2018 11:40
Profile WWW
Doomed

Joined: 25 Aug 2009 08:02
Posts: 361
Location: Москва
Reply with quote
Вот навскидку. Ассемблер всеми любимого 80-го, преобразователь кода, исходный код на аккумуляторе, результат там же.
Code:
                ani     0Fh
                adi     90h
                daa
                aci     40h
                daa

Как оно красиво на Си будет выглядеть?


23 Feb 2018 07:29
Profile
Senior

Joined: 18 Nov 2013 16:15
Posts: 193
Location: все оттуда ;)
Reply with quote
http://microapl.com/asm2c/index.html

Relogix™ Assembler-to-C translator

RelogixTM is an advanced software conversion tool which can port assembly-language source files, automatically re-coding them into naturally-structured, readable, maintainable C, complete with meaningful variable names and types.

Unlike most other attempts at automated migration from assembler to C, Relogix produces results close to what a skilled human programmer would produce if asked to re-write an assembler source file in C - only with fewer bugs and in a very much shorter time.

Relogix is available in a number of versions to convert assembler code for a range of different architectures:

IBM mainframes (HLASM)
Desktop systems and 32-bit embedded processors, including the 680x0, CPU32 and ColdFire family, and the Intel 80x86 (IA32) family
Microcontrollers including the 8051 and derivatives, the PIC 16/18 family and the 6502.

Some of these are currently available only as code migration services carried out by MicroAPL staff - please contact us for more information. Assembler code for other processor families, including the Z80 and AVR, can also be converted.


27 Feb 2018 17:14
Profile
Admin
User avatar

Joined: 09 Jan 2003 00:22
Posts: 17117
Location: Colorado
Reply with quote
Where is PDP-11? :mrgreen:

_________________
:eugeek: https://twitter.com/Shaos1973


27 Feb 2018 20:12
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.