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,170 of 4,675   
   Kerr-Mudd,John to nowhere@nospicedham.never.at   
   Re: small asm code (compo?)   
   03 Oct 20 19:01:06   
   
   From: notsaying@nospicedham.127.0.0.1   
      
   On Sat, 03 Oct 2020 17:01:35 GMT, wolfgang kern   
    wrote:   
      
   > On 01.10.2020 10:05, Kerr-Mudd,John wrote:   
   > ...   
   >> I didn't try any of that; just tight code; here you are Wolfgang, get   
   >> typing!   
   >   
   >> today1a4.com 256 byte   
   >   
   > I remember vague on a batch-file which printed date&time to screen, it   
   > was much shorter than this :)   
   > __   
   > wolfgang   
   >   
   > wouldn't BIOS calls instead of DOS-FN make it shorter ?   
   >   
      
   not really, 4 bytes to get time, same for date; I set the   
   returncode/errorlevel so need int21 fn 4C for that, and that only leaves   
   1 DOS print: int21 fn9   
      
   there's a lot of call to 2 (ish) rtns as they do a lot of the work!   
      
   > BF2409   
   > 57   
   > B42C   
   > CD21   
   > 51   
   > 88E8   
   > 31C9   
   > E85900     ;call   
   > 58   
   > 41   
   > BE9701   
   > E85000     ;call   
   > 4E   
   > 88F0   
   > E84A00     ;call   
   > B42A   
   > CD21       ;get   
   > 40   
   > 89C5   
   > 51   
   > 98   
   > E84F00   
   > BE8B01   
   > A5A5       ;dup  ;### yup; prints 'day '   
   > 56   
   > 88D0   
   > E83400     ;call   
   > 80FC31   
   > 98   
   > 740A   
   > 2C30   
   > 3C04   
   > 7304   
   > D1E0   
   > 01C6   
   > A5   
   > 88F0   
   > 99   
   > BEB501   
   > E82A00    ;call   
   > 5E   
   > 4E   
   > 58   
   > B164   
   > F7F1   
   > E80F00    ;call   
   > 92   
   > E80C00    ;call   
   > 5A   
   > 89D0   
   > AA   
   > CD21      ;put   
   > 95   
   > B44C   
   > CD21      ;end   
   >   
   >:SubroutineA   
   > A4   
   > D40A   
   > 08E1   
   > 7406   
   > 80CC30   
   > 882547   
   > 0C30   
   > AA   
   > C3   
   >   
   >:SubroutineB   
   > 91   
   > B020AA   
   > E309   
   > AC   
   > A820   
   > 75F9   
   > E3F2   
   > E2F7   
   > AA   
   > EBF4   
   >   
   >:text   
   > 64617920746873746E6472643A53756E4D6F6E5475   
   > 65735765646E6573546875727346726953617475724A616E7561727946656272   
   > 756172794D61726368417072696C4D61794A756E654A756C7941756775737453   
   > 657074656D6265724F63746F6265724E6F76656D626572446563656D62657258   
   >   
   >   
      
      
      
   --   
   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