Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,069 of 4,675    |
|    Frank Kotler to 11mangu01@nospicedham.gmail.com    |
|    Re: Easily convert 16bit asm to 32bit wi    |
|    04 Aug 20 15:49:55    |
      From: fbkotler@nospicedham.myfairpoint.net              On 08/03/2020 05:18 AM, 11mangu01@nospicedham.gmail.com wrote:       > On Monday, 30 June 2014 04:12:52 UTC+1, William Gallant wrote:       >> I have never found any 16bit to 32bit asm converters       >> ( always told there is none ). My theory is to take a       >> 16bit program and pass it through a modified DOS DEBUG       >> program such as Paul Vojta's DEBUGX.COM and spew       >> out 32bit. Does this seem possible?       >       > I think it is semi possible, i think a program could be made to run an       assembaled assembaly file coded in 16 bit asm, and then from that generate a       32 or 64 bit asm file that gives an ok output.       >       > e.g:       >       > 8086:       > ======       >       > .data       > text db "Hello World!",10,13,0       > ...       >       > .code       > mov dx, text       > mov ah, 09h       > int 21h       > ...       >       > translated from output to nasm 32:       > section .text       > mov rax, 1       > mov rdi, 1       > mov rsi, 72       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 101       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 108       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 108       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 111       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 32       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 119       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 111       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 114       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 108       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 100       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 33       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 10       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 13       > mov rdx, 1       > syscall       >       > mov rax, 1       > mov rdi, 1       > mov rsi, 0       > mov rdx, 1       > syscall       >       > mov rax, 60       > mov rdi, 0       > syscall       >       > ; or something along those lines              Have you tun this code? I doubt it. Looka like it'll segfault to me.              > but displaying text is easy and so more advanced things would not be able to       translate very well but this is just a concept.       >              Might be "possuble" but I doubt it'll ever be "useful". Yoo mich       difference between OSen!              Best,       Frank              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca