Thu 16 Aug 2007 03:58:41 PM UTC, original submission:
I'm very interested in going through this book and learning what it has to teach me. I'm using a MacBook Pro. Although the book says it works with Linux, I first tried to enter the first program exit.s, into a file on my Mac. When that didn't work, I installed Ubuntu, on the Mac under the Parallels Desktop virtualization. When that didn't work, I tried using a shell account I have with my web server.
Ubuntu and the shell account (which is Linux, although I don't know which distribution) all provide the same results when I attempt to assemble the program:
exit.s: Assembler messages:
exit.s:22: Error: no such instruction: `mov1 $1,%eax'
exit.s:26: Error: no such instruction: `mov1 $0,%ebx'
Mac OS X provided similar, although additional, errors:
exit.s:20:Expected comma after segment-name
exit.s:21:Expected comma after segment-name
exit.s:21:Rest of line ignored. 1st junk character valued 32 ( ).
exit.s:23:no such instruction: `mov1 $1,%eax'
exit.s:27:no such instruction: `mov1 $0,%ebx'
Do I need to use an older version of Linux? The book says that everything was tested with Red Hat 8, but I haven't found a download of that (or Fedora 1, which seems to be from the same general era).
Any pointers would be appreciated. I do have, in addition to my Macs, an old PC box that I could conceivably use if virtualization won't work.
Thanks,
Chuck
|