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,536 of 4,675   
   Kerr-Mudd,John to All   
   Re: DOS debug to com   
   09 Sep 18 18:42:46   
   
   From: notsaying@nospicedham.invalid.org   
      
   On Sun, 02 Sep 2018 11:07:15 GMT, "wolfgang kern"    
   wrote:   
      
   > Kerr-Mudd,John wrote:   
   >   
   >> Now full 60kish read/write buffer (requires 80 cols to view)   
   >   
   > Yeah, me too often reuse existing code with several entry points.   
   > Thanks for the fun :)  during wait for lunch ready...   
   > __   
   > wolfgang   
   >   
   >> -d 100 l 100   
   >   
   > 0100  BA BC 01             ;dx=msg   
   >       81 3E 82 00 2D 68    ;cmp cmd-line "-h"   
   >       74 6A   
   >       E8 8C 00   
   >       09 C9   
   > 0110  74 60   
   >       B0 2D   
    ;std debug files are "-d"; Grdb have "->d" after copyright message   
   >       AE   
   >       74 04   
   >       B0 3E   
   >       F2 AE                ;repnz scansb ">"   
   >       49   
   >       80 3D 64   
   >       75 51   
   scanfor lf   
   > 0121  89 D6   
   >       B0 0D   
   >       E8 55 00   
   >       E3 4F                ;jcxz   
   scanfor ":"   
   >       B0 3A   
   >       E8 4E 00   
   >       E3 48   
   scanfor space   
   > 0131  B0 20   
   >       E8 47 00   
   >       E3 41   
   >       BB 31 00   
   NextC:   
   >       8A 05   
   do2ndhex:   
   >       47   
   >       3C 30   
   > 0140  72 11   
   >       24 4F   
   >       D4 37                ;DIVMOD 0x37   
   >       80 F2-01   
   >       75 05   
   >       4E   
   >       8A 24   
   >       D5 10                ;MULADD 0x10   
   > 0150  88 04   
   >       46   
   >       E2 0E                ;loop forward to HaveC   
   ; if halfway through a hex char; need to change some regs   
   >       80 FA 00   
   >       74 04   
   >       4A   
   >       4E   
   >       B4 FF                ; flag as parthex   
   >       E8 28 00             ; call WriteThenRead   
   > 0161  E3 16                ; jcxz   
   HaveC:   
   >       4B                   ; count down cols   
   >       74 BD                ; end of hex section   
   >       80 FC FF             ; if not parthex   
   >       75 D0                ;; NextC   
   >       86 04                ;  get 2nd halfhex(Asc), store tophalfhex   
   >       98                   ; reset halfhex flag   
   >       46   
   >       42   
   > 0170  EB CB                ; do2ndhex   
   > 0172: BA AE 01       ;MSG+end   
   > 0174: B4 09          ;   
   >       CD-21   
   >       B4 4C   
   > 017A: CD 21   
   >   
   > 017C: F2   
   > 017D: AE             ;scasb   
   >       74 07   
   > 0181  E8 05 00   
   >       09 C9   
   >       75 F5   
   >       C3   
      
    WriteThenRead:   
   > 0189: 50   
   >       53   
   >       B3 01   
   >       89 F1   
   >       29 D1   
   > 0191  B8 00 40   
   >       CD 21   
   >       89 D6   
   >       5B   
   >       58   
   >       50   
   >       53   
   ReadBlock:   
   >       BA 00 02    ;dx=0200   
   >       B9 00 F0    ;cx=F000   
   >       31 DB       ;bx=0   
   >       B4 3F       ;ah (open/create is above ?)   
   >       CD 21   
   lth read moved from ax to cx, al becomes 0 for return code   
   >       89 D7       ;swap and pop   
   >       91   
   >       5B   
   >       58   
   >       C3   
   > 01AE  [X.Not dbg dump..   
   > 01BC  Usage is: xxd-rcomfile..   
   > 01DD  dbgfile: grdb or MS debug "d"ump..$   
   >   
   >   
   >   
   >   
      
      
      
   --   
   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