Skip to main content

Timeline for First steps with amd64 assembly

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Mar 6, 2014 at 21:10 vote accept FUZxxl
Mar 6, 2014 at 16:25 answer added ChrisW timeline score: 3
Mar 6, 2014 at 15:43 history edited konijn
edited tags
Oct 27, 2012 at 19:13 comment added Hawken In 64bit it would seem that it's required, so you were right, I should have known. I'm currently writing 16bit x86 assembly without an OS where segmentation is needed to address your full 20bit address space. Thanks for correcting me.
Oct 27, 2012 at 11:32 history edited FUZxxl CC BY-SA 3.0
Change segment to section as to avoid confusion
Oct 27, 2012 at 10:12 comment added FUZxxl Okay. My bad. This code really is x86 code, but nevertless it is written for linux. Linux, in a similar way as most x86 operating systems today, does not use segmentation (except for some special threading related concepts). All segment registers are set to zero; all accesses to memory are done in the same address space.
Oct 26, 2012 at 21:43 comment added Hawken Hmm, I did not know that. wiki.osdev.org/X86-64 contains information on this for anyone else who did not know.
Oct 26, 2012 at 20:48 comment added FUZxxl @Hawken You see that this code is written for x86-64 linux which uses a flat memory modell? All segment registers except %fs and %gs which serve a special purpose are set to zero.
Oct 26, 2012 at 20:43 comment added Hawken all memory is referenced using the segment specified by %ds or if it's on the stack, %ss. Unless you have personally set the segment register, mov %cs,%ds, or your assembler is adding a custom segment offset, you can't read from outside .data. I don't know if modern OSs allow you to read from .text at all even if you did.
Oct 23, 2012 at 5:02 comment added FUZxxl @Hawken How do you come to this conclusion?
Oct 22, 2012 at 23:42 comment added Hawken I don't think you can access data unless it's in the data segment.
Apr 24, 2012 at 20:10 history tweeted twitter.com/#!/StackCodeReview/status/194881092870877184
Apr 23, 2012 at 20:58 history edited FUZxxl CC BY-SA 3.0
edited body
Apr 23, 2012 at 13:35 history edited FUZxxl CC BY-SA 3.0
deleted 1 characters in body
Apr 23, 2012 at 10:46 history asked FUZxxl CC BY-SA 3.0