home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,283 of 4,675   
   Tavis Ormandy to paul   
   Re: beginner assembler for windows?   
   20 Jan 21 08:17:32   
   
   From: taviso@nospicedham.gmail.com   
      
   On 2021-01-20, paul  wrote:   
   > Tavis Ormandy wrote:   
   >   
   >> The assembler isn't the issue, you're trying to assemble a program   
   >> written for DOS. You need to find a tutorial designed for the system   
   >> you're targetting.   
   >   
   > I apologize if I didn't know enough to ask the right question.   
   >   
   > I just want to assemble a few programs on the Windows 10 x64 command line.   
   >   
   > I would have called that "DOS" but it seems it's not DOS at all based on   
   > what others said, so I don't know what else to call that command interface.   
   >   
      
   Ah-ha, right, that was the source of the confusion. It's a reasonable   
   mustake, 32-bit Windows *could* run DOS programs using virtual 8086 mode   
   (a sort of emulation), so your program would have just worked!   
      
   > Did you ever take a lab class in school?   
   > The lab tells you exactly what to do, does it not?   
   > You learn by watching what happens, but the lab is designed to work.   
      
   I feel your frustration, but you're trying to jump in at the deep end   
   with native win64 assembly language. This is just opinion, but I think   
   starting with C or C++ would be a better option. If you want to learn   
   assembly as you go, you can examine the code the compiler generates and   
   try to follow along with what it's doing.   
      
   One fun tool you can look at is compiler explorer, take a look:   
      
   https://godbolt.org/z/WW3383   
      
   You write some C on the left, and it shows you nicely formatted   
   assembly on the right. You can try changing something, and watch what   
   happens to the generated code.   
      
   Tavis.   
      
   --   
    _o)            $ lynx lock.cmpxchg8b.com   
    /\\  _o)  _o)  $ finger taviso@sdf.org   
   _\_V _( ) _( )  @taviso   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca