You are currently viewing the Assembly Language section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I've tried it on a Windows box using cygwin on Windows XP (running as a guest on top of VMWare Fusion), with a similar result. Does the system call that is used in the program work for MacOSX?
I'm reading the same book! I've just programmed this section of the code under Fedora 12 Linux and it works perfectly. I get 'GenuineIntel' as a result.
Btw, I doubt this code is cross-compatible with Windows XP or a Mac because it is using INT $0x80 interrupt. That is the niche right there.
The Int 0x80 interrupt is for LINUX ONLY. I have even tried compiling it on OpenBSD (A Unix varient) and it just exits without any output.
Try installing Linux and running the code. I KNOW! It's such a shame the book is Linux specific. BUT - YOU MUST INSTALL LINUX TO GET IT TO WORK because its assembler language and not C - with C you can run it on any machine that has a GCC compiler - but NOT assembler. That is hardware specific, and o/s specific.