nedoPC.org

Electronics hobbyists community established in 2002
Atom Feed | View unanswered posts | View active topics It is currently 28 Mar 2024 05:06



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

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

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


22 Feb 2018 04:41
Profile WWW
Maniac

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


22 Feb 2018 07:48
Profile
Senior

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


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


22 Feb 2018 10:40
Profile WWW
Doomed

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

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


23 Feb 2018 06:29
Profile
Maniac

Joined: 18 Nov 2013 15:15
Posts: 209
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 16:14
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22409
Location: Silicon Valley
Reply with quote
Where is PDP-11? :mrgreen:

_________________
:dj: https://mastodon.social/@Shaos


27 Feb 2018 19: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 16 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.