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,109 of 4,675   
   aen@nospicedham.spamtrap.com to notsaying@nospicedham.127.0.0.1   
   Re: small asm code (compo?)   
   24 Aug 20 19:28:10   
   
   On Mon, 24 Aug 2020 16:50:35 -0000 (UTC), "Kerr-Mudd,John"   
    wrote:   
   >...   
   >I get 0 every time under XP, but thanks.   
   >...   
   Uh well, my old machine with an XP was gathering dust anyway.   
      
   I copied a program that returns 2 and the geterror prog over to XP.   
      
   Then I first ran the program in DOSBox on my machine and then   
      
   debug geterror.com   
   u (which showed 0772:0104 as the address after the int 21h function 4D   
   g 0772:0104 (which showed AX=0002)   
      
   Next I ran the same thing on the XP machine in cmd   
      
   u (which showed 0d35:0104 as the address after the int 21h function 4D   
   g 0d35:0104 (which showed AX=0000)   
      
   But XP has cmd and not the dos command (which has no %errorlevel%, but   
   cmd uses   
      
   echo %errorlevel%   
      
   to show the return code and when I ran the program and then   
      
   echo %errorlevel% I got the 2, so that's what you should use.   
   --   
   aen   
      
   --- 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