×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

16 bit Segmented Assembly Nasm .98 version

16 bit Segmented Assembly Nasm .98 version

16 bit Segmented Assembly Nasm .98 version

(OP)
Student? Suppose you can consider me a 'newbie' or a newly entered programmer. But, no. I'm not an enrolled college student at the moment (so please don't immediately delete).

But hopefully someday I will :D

I'm new to assembly. I've taken interested in the book, 'Assembly Language Step-by-Step', 2nd edition by Jeff Duntemann. He's a well written, incredibly easy to understand writer. I suggest anyone new to Assembly to check this book out.

More to the point. I've been working throughout his examples, mostly 16-bit real mode flat model. So far no problem. Instead of just copying and pasting, or just opening up his original document, I have been rewriting to get a smooth and more understandable approach with assembly and NASM instructions.

The problem I am now having is with examples with 16-bit segmented examples. I noticed that with real mode flat model, NASM had no problems with

[SECTION CODE]    or
[SECTION DATA] with 16-bit real mode flat model

but is having difficult with the naming of

SEGMENTED code or
SEGMENTED stack stack    with attempts of doing 16-bit real mode segmented model.

The error that occurs is:
segment name 'stack' is not recognized     and
segment name 'code' is not recognized.


Any ideas?




*********************** Answered *************************

Okay. I was going to delete this, but hopefully I can give some use to others that are new and using Nasm as well. Who knows, someone may google this type of problem and bring them here, possibly another new user to the forums.

If you have this book, read pg 246. Basically, Nasm-ide uses NASM for 16-bit REAL MODE FLAT MODEL ONLY assembly. Once you get into 16-bit REAL MODE -SEGMENT- MODEL, you can't use Nasm through NASM-IDE to assemble and link. Nasm-ide doesn't have a linker. :O  (I read that at one point, but I guess I forgot. Assembly seems to be vastly more detail oriented than higher level languages that I'm used to).


Well. Thanks for reading my own question/answer xD.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close