Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NASM - section definition?..

Status
Not open for further replies.

Ben3D

Technical User
Apr 22, 2003
6
GB
Hey All..
well I'm new to assembly and well...I've played around with the MASM assembler but have now started using the NASM one....

I just can't seem to find out how to define a section and use it...
For example...define a data section called bob...then put its lcoation into ax...

e.g.

section bob


section .text
start:
mov ax, bob

Hope you get the idea...

Thanx for any help on this.

Ben :)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top