flat assembler
Message board for the users of flat assembler.
Index
> Main > GetFileAttributes test |
Author |
|
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 @@: 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 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 **************************************** 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 ".\" $0000'0010 ".." $FFFF'FFFF Bed "../" $FFFF'FFFF Bed "..\" $FFFF'FFFF Bed "/" $0000'0010 "\" $0000'0010 "//" $FFFF'FFFF Reversed !!! "\\" $0000'0010 Reversed !!! "///" $FFFF'FFFF "\\\" $FFFF'FFFF "C:" $FFFF'FFFF Evil "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 ".\" $0000'0011 R!!! ".." $0000'0010 "../" $FFFF'FFFF Bed "..\" $0000'0010 "/" $0000'0010 "\" $0000'0010 "//" $FFFF'FFFF Reversed !!! "\\" $0000'0010 Reversed !!! "///" $FFFF'FFFF "\\\" $FFFF'FFFF "C:" $FFFF'FFFF Evil "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 "../" $FFFF'FFFF Bed "..\" $FFFF'FFFF Bed "/" $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 ".\" $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 ), ... Last edited by DOS386 on 06 Feb 2010, 09:39; edited 1 time in total |
|||
06 Feb 2010, 09:32 |
|
DOS386 06 Feb 2010, 09:37
|
|||
06 Feb 2010, 09:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.