Re: Linux X demo
- From: Frank Kotler <fbkotler@xxxxxxxxxxx>
- Date: Thu, 19 Jul 2007 10:41:40 GMT
Rod Pemberton wrote:
"santosh" <santosh.k83@xxxxxxxxx> wrote in message
news:f7n54g$mv1$1@xxxxxxxxxxx
On Thursday 19 Jul 2007 1:13 pm, Rod Pemberton
<do_not_have@xxxxxxxxxxx> wrote in message <f7n4kc$lgc$1@xxxxxxxx>:
"Herbert Kleebauer" <klee@xxxxxxxxx> wrote in message
news:469F016B.ED17442@xxxxxxxxxxxx
Leave it as a homework for the want-to-be low level Linux
X programmer to correct the code.
Herbert,
You mean well, but I have to ask. Who's going to do that?
Seriously,
doesn't "move.l r1,r5", etc., guarantee that no x86 programmer
will ever use the code you just posted...
No entirely...
i.e., Does anyone want to learn another assembly language (yours)
to do x86
assembly? How does one assemble it? How does one port it? Does
anyone
want to port it just to assemble it? If it's x86, why does it look
like a mix of 68000, AT&T, and who knows what else?
You're giving me flashbacks of Randall's teaching tool HLA: C
collided with
Pascal. After many surgeries and a jolt it lives... Grrr! Convert
your
assembler to AT&T syntax and it might be useful to others. Is your
assembler even available to others? I don't recall ever seeing a
link.
<http://137.193.64.130/windela.zip>
Or search the group for more links.
IIRC instructions are implemented only uptil the 486, and the compile
crashed for me on Linux.
It seems he has another called ass486.zip...
For windela.c, OUCH! It had a 156 warnings (DJGPP), some of which appear to
be serious. It appears he's not familiar with:
gcc -Wall -pedantic -c
OpenWatcom (wcc386 -wx) returned 48 warnings and 13 errors... It appears
that OW even had problems parsing parts of the file.
So, my observations about how to compile or port HK x86 code are still
valid...
I found I had to rename the file to a lower-case ".c" before it would compile with gcc (Linux). Upper case ".C" implies C++, or some nonsense. Compiled and worked fine for me. (yeah, "-Wall -pedantic" makes gcc complain... so don't)
I just started a post, and my browser quit (bad language)... It included a "quickstart" guide - file extension must be ".mac", start daniela/windela/lindela with no parameters, give the "first name" - no extension - when prompted. So easy, even a HLA user could do it! :) Watch in amazement as the thing makes an executable from that line-noise. One last step, "chmod +x myfile" (daniela/windela/lindela likes to name files ".com"... not really a problem...)
I'll have more to say about Herbert's example. My usual M.O. is to disassemble his executable into Nasmese, and work from there. This gives *ugly* results. This example is so beautifully formatted and commented that it deserves better than that! A "hand translation" will be tedious, but I think it may be worth it. Not immediately. Herbert speaks a strange language, but he does beautiful work!
With some recombinant surgery, and a sufficiently powerful jolt, lindela and ndisasm might be fused into a "converter"... doubt if it'd be worth it.
Best,
Frank
.
- Follow-Ups:
- Re: Linux X demo
- From: Rod Pemberton
- Re: Linux X demo
- From: santosh
- Re: Linux X demo
- References:
- Linux X demo
- From: Herbert Kleebauer
- Re: Linux X demo
- From: Herbert Kleebauer
- Re: Linux X demo
- From: Rod Pemberton
- Re: Linux X demo
- From: santosh
- Re: Linux X demo
- From: Rod Pemberton
- Linux X demo
- Prev by Date: Re: ASM routines for WIN 32 Clipboard
- Next by Date: Re: Linux X demo
- Previous by thread: Re: Linux X demo
- Next by thread: Re: Linux X demo
- Index(es):
Relevant Pages
|