Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-06-2007, 11:59 AM   #1 (permalink)
cdybreez
Recruit
 
Join Date: Dec 2007
Posts: 1
cdybreez is on a distinguished road
Setup

Hey, I've just begun learning assembly several days ago using the art of assembly at Art of Assembly Language Programming and HLA by Randall Hyde on Windows XP. The problem is the first program they had me do, the hello world program, it worked fine, but at the end of the compilation it said:
POLINK: warning: /SECTION: .bss ignored; section is missing

The program worked fine when I executed it after that, but when I did another of the example programs, the error message at the end was

error: illegal instruction

When I tried to execute it after that, the the command is not recognized as an internal command, operable program or batch file.

If you need more information I can take screenshots the whole thing and post them up here.
cdybreez is offline   Reply With Quote
Old 12-08-2007, 03:32 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,696
redhead is on a distinguished road
I've moved your post to the Assembly forum, since we now do have one...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 12-08-2007, 08:41 AM   #3 (permalink)
Hamlin
Jedi Master
 
Hamlin's Avatar
 
Join Date: Feb 2006
Location: Denver, CO
Posts: 15
Hamlin is on a distinguished road
Quote:
Originally Posted by cdybreez View Post
Hey, I've just begun learning assembly several days ago using the art of assembly at Art of Assembly Language Programming and HLA by Randall Hyde on Windows XP. The problem is the first program they had me do, the hello world program, it worked fine, but at the end of the compilation it said:
POLINK: warning: /SECTION: .bss ignored; section is missing

The program worked fine when I executed it after that, but when I did another of the example programs, the error message at the end was

error: illegal instruction

When I tried to execute it after that, the the command is not recognized as an internal command, operable program or batch file.

If you need more information I can take screenshots the whole thing and post them up here.
Randall Hyde's code generally assumes you're assembling with Masm32 and linking with Microsoft's linker LINK/LINK32. What tools are you using for assembling and linking?

When you get an illegal instruction error message, the object files won't link at all, which means you're not going to have a result executable. If there's no executable by the name of the command you're typing after the linking process, then XP will definitely tell you that the command is not recognized as an internal command, operable program, or batch file.

If you're not currently using MASM32 and LINK/LINK32 to do your assembling and linking, you should give them a shot - I think you'll find those error messages go away, especially if all you're doing is copying and pasting Hyde code.

I'll watch this space to see how that goes for you.
Hamlin is offline   Reply With Quote
Old 12-08-2007, 10:19 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,696
redhead is on a distinguished road
Hey Hamlin, haven't heard from you in a while.. Nice to see you're still monitoring this section
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A small problem in the output the_master Standard C, C++ 1 12-17-2006 09:09 AM
How to Link C++ to Assembly .OBJ files Using ILINK? apx_31088 Standard C, C++ 0 10-23-2006 06:17 AM
Good place to start learning assembly? teknomage1 Assembly 5 04-19-2006 07:00 AM
JSP code problem j.gohel Java 7 04-15-2005 02:07 PM
Hashing problem jodders Standard C, C++ 1 02-09-2005 01:51 PM


All times are GMT -8. The time now is 10:12 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting