From: notsaying@nospicedham.invalid.org   
      
   On Thu, 05 Apr 2018 10:04:21 GMT, "wolfgang kern"    
   wrote:   
      
   >   
   > Kerr-Mudd,John posted:   
   >   
   > after all I see some neat tricks in your code ...   
   >   
   >> minicalc.com   
   >   
   >> ->u100 l100   
   >> 161D:0100 BE 80 00 mov si,0080   
   >> 161D:0103 AC lodsb   
   >> 161D:0104 98 cbw   
   >> 161D:0105 91 xchg ax,cx   
   >> 161D:0106 E8 8F 00 call 0198 ; getnum   
   >> 161D:0109 72 4C jb 0157   
   >> 161D:010B 95 xchg ax,bp   
   >   
   > I'm not sure where the call returns to if only spaces or cx=0.   
      
   Yup, not tested properly   
      
   >>   
   >> getnum:   
   >> 161D:0198 AC lodsb   
   >> 161D:0199 3C 20 cmp al,20   
   >> 161D:019B E1 FB loopzw 0198   
   >> 161D:019D 74 30 jz 01CF   
   >   
   > ?? if first call: 01CF pops ax,dx,pb,ip ?? (JZ 01CE)   
   >   
   Ah yes definitely bad code.   
      
   Thanks for reviewing it; it seems much easier to find faults in other   
   peoples code!   
      
   >   
   > you use the "h" as prefix while I (optionally) display it after Num.   
      
   It's much easier to process input in that format ISTM.   
      
      
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|