flat assembler
Message board for the users of flat assembler.

Index > OS Construction > x86 to C++

Author
Thread Post new topic Reply to topic
connor



Joined: 07 Jun 2016
Posts: 70
Location: sj ca
connor
What is an uncomplicated way of translating x86 assembly language into C or C++?

Im trying to convert the source code of Concurrent CP/M, into something more conventional.


Description: cp/m-86 1.0

no hard drive support;

took me ages to find & make work right.

Download
Filename: CPM86 10 no hard drive.zip
Filesize: 268 KB
Downloaded: 86 Time(s)


_________________
9518741
Post 21 May 2020, 02:58
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 807
Location: Belarus
DimonSoft
Wrapping everything into __asm {} blocks and carefully setting up the compiler? But why? General purpose compiler is not a good way to compile certain parts of an OS. Why not Java then? It seems to be quite conventional as well.
Post 23 May 2020, 13:32
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7781
Location: Kraków, Poland
Tomasz Grysztar
In the second issue of Paged Out! magazine there is an interesting article (which I mentioned here) that shows an example of [mostly] automatic conversion of an assembly project to C. But the sources of that project used some high level constructs to begin with. Conversion of a code that is structured with jumps would be more tricky.
Post 23 May 2020, 14:59
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.