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 3,549 of 4,675   
   Alexei A. Frounze to Alexei A. Frounze   
   Re: EXE program stack setup questions   
   06 Oct 18 22:12:18   
   
   From: alexfrunews@nospicedham.gmail.com   
      
   On Saturday, October 6, 2018 at 10:01:00 PM UTC-7, Alexei A. Frounze wrote:   
   > This seems to work.   
   >   
   > myseg segment stack 'stack' use16   
   >     assume cs:myseg, ds:myseg, es:myseg, ss:myseg   
   > start:   
   >     mov     ax, cs   
   >     mov     ds, ax   
   >     mov     es, ax   
   >     mov     ax, 4c00h   
   >     int     21h   
   >   
   >     align 16   
   >     db 4096 dup ('?')   
   > myseg ends   
   >   
   > end start   
      
   Oopsie. The question mark should be unquoted.   
   Otherwise 4096 extra bytes will appear in the .EXE.   
      
   Alex   
      
   --- 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