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,423 of 4,675   
   Kerr-Mudd,John to All   
   Re: DOS debug to com   
   31 May 18 18:28:23   
   
   From: notsaying@nospicedham.invalid.org   
      
   On Thu, 31 May 2018 14:02:44 GMT, "wolfgang kern"    
   wrote:   
      
   >   
   > "Kerr-Mudd,John"  schrieb im   
   > Newsbeitrag news:XnsA8F29BFD1FA4Dadmin127001@85.214.115.223...   
   []   
   >> Having belatedly discovered GNU's xxd with it's -r option,   
   >> I've done a version for DOS.   
   >   
   []   
   >   
   > Yes even it doesn't make any sense for me, I couldn't resist to spend   
   > 1/4h to translate it just for fun... and I see many branches here :)   
      
   Thanks   
   >   
   > 0100  BA 9D 01           dx=019d   
   > 0103  81 3E 82 00 2D 68  cmp[0082],682d    ;"-h"   
   > 0109  74 67              jz 0172   
   > 010b  31 DB              bx=0   
   > 010d  BE FE 41           si=41fe   
   > 0110  56                 push si   
   > 0111  BA 00 02           dx=0200   
   >   
   > 0114  53                 push bx   
   > 0115  31 DB              bx=0   
   > 0117  89 D7              di=dx             ;bad compiler*: 8B FA   
      
   []   
   >   
   > *) 88 and 89 opcodes should only be used for memory writes,   
   >    8a and 8b are the standard READ (mem or reg) codes.   
      
      
   I'm using nasm:   
      
   2016-02-16  15:25         1,076,736 nasmw.exe   
      
      
   I've improved xxd-r slightly, but still need to do more: as I have it at   
   the moment there's only 1 output write, so there's a limit of 51k for the   
   input file.   
      
   --   
   Bah, and indeed, Humbug.   
      
   --- 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