News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Updated Eratothenes (sieb1new.zip)

Started by cobold, July 31, 2008, 07:20:14 PM

Previous topic - Next topic

cobold

Hello,

            invoke crt__ultoa,ebx,addr szPrim , 10   ; convert prime to ASCII
            invoke WriteFile,hFile,ADDR szPrim,10,ADDR rlen,NULL
            ;
            invoke WriteFile,hFile,ebx,4,ADDR rlen,NULL    ; write 'raw' <-------- COMMENT OUT THIS LINE, it saves the primes in binary,

so either use the first WriteFile to save them in ASCII - OR - second WriteFile to save them in binary, but not BOTH ;-)

rgds
cobold

herge

 Hello cobold:

Thanks!

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy