flat assembler
Message board for the users of flat assembler.

Index > Main > GetFileAttributes test

Author
Thread Post new topic Reply to topic
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 06 Feb 2010, 09:32
Code:
pick_loop:
        lodsb
        dec    esi
        cmp    al, 1
        je     short stuff_done
        push   esi            ; For GFA
        lea    ecx, [esi+8]   ; Unupdated value
        call   ssquot
        call   ssprintesia    ; Can have faulty char's | Updates ESI
        call   ssquot
        sub    ecx, esi       ; Space left
        and    ecx, 7         ; Prevent BIG negativity Wink
@@:     call   ssspc
        loop   short @b       ; Align text
        call   dword [GFA]    ; Uses unupdated value PUSH'ed before
        call   ssdoll
        call   sshex32        ; Report attribs ($FFFF'FFFF is invalid, heh)
        call   sseol
        jmp    short pick_loop
        ;---------------------
    


Download complete code now (8'406 Byte's) id=4789

The next silly DOS & Win32 test ... considering that it's only 2 months Shocked since I boasted with this type of thing previously t=10872 (2009-11-30) CommandLineToArgvW

Results (desastrous):

Code:
XP , MAIN DIR , no "JUNK" thing :

"JUNK"   $FFFF'FFFF
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0010
"./"     $0000'0010
".\"     $0000'0010
".."     $0000'0010
"../"    $0000'0010
"..\"    $0000'0010
"/"      $0000'0010
"\"      $0000'0010
"//"     $FFFF'FFFF
"\\"     $FFFF'FFFF
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $0000'0010
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF

XP , SUBDIR , "JUNK" file exists :

"JUNK"   $0000'0020
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0011 R!!!
"./"     $0000'0011 R!!!
".\"     $0000'0011 R!!!
".."     $0000'0010
"../"    $0000'0010
"..\"    $0000'0010
"/"      $0000'0010
"\"      $0000'0010
"//"     $FFFF'FFFF
"\\"     $FFFF'FFFF
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $0000'0011 R!!!
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF
    
Code:
ME , MAIN DIR , no "JUNK" thing :

"JUNK"   $FFFF'FFFF
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0010
"./"     $0000'0010
".\"     $0000'0010
".."     $0000'0010
"../"    $0000'0010
"..\"    $0000'0010
"/"      $0000'0010
"\"      $0000'0010
"//"     $0000'0010 WtF???
"\\"     $FFFF'FFFF WtF???
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $0000'0010
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF

ME , SUBDIR , "JUNK" file exists :

"JUNK"   $0000'0020
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0011 R!!!
"./"     $0000'0011 R!!!
".\"     $0000'0011 R!!!
".."     $0000'0010
"../"    $0000'0010
"..\"    $0000'0010
"/"      $0000'0010
"\"      $0000'0010
"//"     $0000'0010 WtF???
"\\"     $FFFF'FFFF WtF???
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $0000'0010 WOW!!!
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF
    
Code:
EDR-DOS 2009 + HX 2.17pre , any other detail irrelevant : 

"JUNK"   $FFFF'FFFF
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $FFFF'FFFF
"./"     $FFFF'FFFF
".\"     $FFFF'FFFF
".."     $FFFF'FFFF
"../"    $FFFF'FFFF
"..\"    $FFFF'FFFF
"/"      $FFFF'FFFF
"\"      $FFFF'FFFF
"//"     $FFFF'FFFF
"\\"     $FFFF'FFFF
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $FFFF'FFFF
"C:/"    $FFFF'FFFF
"C:\"    $FFFF'FFFF
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF

It DOES NOT WORK AT ALL - because of the horrible
"NTLFN-Attrib-BUG" of 2009 versions of EDR-DOS Sad

****************************************

EDR-DOS 2009 + HX 2.17pre + UI21DEB "N" , MAIN DIR , no "JUNK" thing :

"JUNK"   $FFFF'FFFF
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0010
"./"     $FFFF'FFFF Bed Sad
".\"     $0000'0010
".."     $FFFF'FFFF Bed Sad
"../"    $FFFF'FFFF Bed Sad
"..\"    $FFFF'FFFF Bed Sad
"/"      $0000'0010
"\"      $0000'0010
"//"     $FFFF'FFFF Reversed !!!
"\\"     $0000'0010 Reversed !!!
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $FFFF'FFFF Evil Sad
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF

****************************************

EDR-DOS 2009 + HX 2.17pre + UI21DEB "N" , SUBDIR , "JUNK" file exists :

"JUNK"   $0000'0020
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0011 R!!!
"./"     $FFFF'FFFF Bed Sad
".\"     $0000'0011 R!!!
".."     $0000'0010
"../"    $FFFF'FFFF Bed Sad
"..\"    $0000'0010
"/"      $0000'0010
"\"      $0000'0010
"//"     $FFFF'FFFF Reversed !!!
"\\"     $0000'0010 Reversed !!!
"///"    $FFFF'FFFF
"\\\"    $FFFF'FFFF
"C:"     $FFFF'FFFF Evil Sad
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF

****************************************

FreeDOS 2038 + HX 2.17pre , MAIN DIR , no "JUNK" thing :

"JUNK"   $FFFF'FFFF
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0010
"./"     $0000'0010
".\"     $0000'0010
".."     $FFFF'FFFF Bed Sad
"../"    $FFFF'FFFF Bed Sad
"..\"    $FFFF'FFFF Bed Sad
"/"      $0000'0010
"\"      $0000'0010
"//"     $0000'0010
"\\"     $0000'0010
"///"    $0000'0010
"\\\"    $0000'0010
"C:"     $0000'0010
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF

****************************************

FreeDOS 2038 + HX 2.17pre , SUBDIR , "JUNK" file exists :

"JUNK"   $0000'0020
" SPC"   $FFFF'FFFF
"*.*"    $FFFF'FFFF
"???"    $FFFF'FFFF
"."      $0000'0011 R!!!
"./"     $FFFF'FFFF Bed Sad
".\"     $0000'0011 R!!!
".."     $0000'0010
"../"    $0000'0010
"..\"    $0000'0010
"/"      $0000'0010
"\"      $0000'0010
"//"     $0000'0010
"\\"     $0000'0010
"///"    $0000'0010
"\\\"    $0000'0010
"C:"     $0000'0010 WOW!
"C:/"    $0000'0010
"C:\"    $0000'0010
"Z:"     $FFFF'FFFF
"Z:/"    $FFFF'FFFF
"Z:\"    $FFFF'FFFF
".K."    $FFFF'FFFF
".E."    $FFFF'FFFF
""       $FFFF'FFFF
    


If someone wondered why some apps (preferably ported from Linux ???) sometimes don't work ... here ^^^ is the evil ... known to be affected: MPLAYER (-vo png), PNG2THEORA, FFMPEG2THEORA (PNG input), BIEW, all other (EDR-DOS case Laughing), ...


Last edited by DOS386 on 06 Feb 2010, 09:39; edited 1 time in total
Post 06 Feb 2010, 09:32
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 06 Feb 2010, 09:37
Image
Post 06 Feb 2010, 09:37
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.