Wrox Programmer Forums
|
BOOK: Professional Assembly Language
This is the forum to discuss the Wrox book Professional Assembly Language by Richard Blum; ISBN: 9780764579011
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Assembly Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2005, 09:14 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default can't execute example under freebsd

Hi,
I couldn't execute example (e.g: chap04/cpuid) underfreebsd .
The environment and tool I used were (in IBM X31 box):
1.
bash-2.05b# uname -a
FreeBSD sexbear.localhost 5.3-STABLE FreeBSD 5.3-STABLE #3: Sun Feb 20 21:55:06 UTC 2005 [email protected]:/usr/obj/usr/src/sys/SEXBEAR??i386
2.
bash-2.05b# as -v
GNU assembler version 2.15 [FreeBSD] 2004-05-23 (i386-obrien-freebsd) using BFD version 2.15 [FreeBSD] 2004-05-23

bash-2.05b# ld -v
GNU ld version 2.15 [FreeBSD] 2004-05-23

3.
bash-2.05b# gdb cpuid
(gdb) run
Starting program: /usr/local/src/code/chap04/cpuid
Program exited with code 0340.

I also executed the other example in the same chapter.
But I got the same result.
Could someone give me a hint where I could find the more information?
Thanks~

Regards,

?
 
Old April 24th, 2005, 09:37 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://lists.freebsd.org/pipermail/f...il/011641.html

 
Old November 9th, 2005, 04:36 PM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had something alike, but my default OS is Windows and i tried something really strange, actually it was an typing mistake of mine... I switched all the codes from left to right:
ex.: MOV 0, AX became MOV AX, 0 and it actually worked !
If you are a windows user ... change the code and it works ...






Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 5.1 no loopback configured Daniel Walker Linux 1 December 15th, 2006 12:49 PM
connection.execute and command.execute difference vinod_yadav1919 Classic ASP Databases 0 September 28th, 2005 06:34 AM
execute gauravchhabra9111 Apache Tomcat 0 January 24th, 2005 06:06 AM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.