Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Assembly Segments

Reply
Thread Tools

Assembly Segments

 
 
Jeremy Cowles
Guest
Posts: n/a
 
      09-10-2003
I am trying to understand (and failing) how code segments work. I have the
following code:

segment .text

global _asm_main

_asm_main:

enter 0,0 ; setup routinepusha

 
Reply With Quote
 
 
 
 
Jeremy Cowles
Guest
Posts: n/a
 
      09-10-2003
CTRL+Enter sent my mail pre-maturely.

So, as I was saying, I have this asm code that specifies the following code
segments:

..text
..data
..bss

Are these segment names actually coded into the .EXE, or are they just
something that my Assembler understands? I am using NASM, and GCC, and am
linking C objects in with some assembly from a tutorial.

TIA,
Jeremy

 
Reply With Quote
 
 
 
 
Karl Heinz Buchegger
Guest
Posts: n/a
 
      09-10-2003


Jeremy Cowles wrote:
>
> CTRL+Enter sent my mail pre-maturely.
>
> So, as I was saying, I have this asm code that specifies the following code
> segments:
>
> .text
> .data
> .bss
>
> Are these segment names actually coded into the .EXE, or are they just
> something that my Assembler understands? I am using NASM, and GCC, and am
> linking C objects in with some assembly from a tutorial.
>
> TIA,
> Jeremy


You are aware that this is comp.lang.c++?

Your question has nothing to do with C++ but everything
to do with assembler.

--
Karl Heinz Buchegger

 
Reply With Quote
 
Jeremy Cowles
Guest
Posts: n/a
 
      09-10-2003
> Your question has nothing to do with C++ but everything
> to do with assembler.



Wasn't thinking, sorry.
 
Reply With Quote
 
Jeremy Cowles
Guest
Posts: n/a
 
      09-10-2003
Do you know of a good assembly group? The only ones i could find were
absoultly dead.


 
Reply With Quote
 
Jeremy Cowles
Guest
Posts: n/a
 
      09-10-2003
> > Do you know of a good assembly group? The only ones i could find were
> > absoultly dead.

>
> comp.lang.asm.x86
>
> seems to be alive and well.



Thanks!

 
Reply With Quote
 
osmium
Guest
Posts: n/a
 
      09-10-2003
Jeremy Cowles writes:

> Do you know of a good assembly group? The only ones i could find were
> absoultly dead.


comp.lang.asm.x86

seems to be alive and well.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CISCO Aironet 1300 WLAN Bridges to Link 2 LAN SEgments transparently... Axel Werner Cisco 0 03-07-2005 08:49 AM
multiple IP-Segments each port Werner Ginzky Cisco 2 10-15-2004 08:19 AM
Problems with segments. John Cisco 2 01-09-2004 08:17 AM
hexa bus to decimal 7 segments - VHDL... PC VHDL 2 11-12-2003 03:43 AM
Cache::Cache Stale Segments Jeff Nokes Perl 0 09-30-2003 04:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57