News for hackers. Stuff that matters.
Re:A web server in x86 assembly language by kragen on Friday June 03, 2011 @12:50PM (#2617045)
It's mostly calls to some kind of assembler macro built into MASM, which means it's not really x86 assembly language:

            INVOKE SetFilePointer,hFile,FOffset,0,FILE_BEGIN
            INVOKE ReadFile,hFile,pMem,FSize,offset NotUsed,0
            INVOKE send,wParam,pMem,FSize,0
            INVOKE GlobalUnlock,hMem
            INVOKE GlobalFree,hMem
            INVOKE closesocket,wParam
            INVOKE CloseHandle,hFile    ;Done with file and socket too.
The guy wrote it in 2001, when he was in high school, and he's done a lot more cool and interesting stuff since then, and it looks like he's graduated to Linux: http://lingcog.iit.edu/~scubed/projects.xml

Too bad he stopped adding new projects to the page in 2007. His "portfolio" page has a few more things since then.

Re:A web server in x86 assembly language by Wo0kToR on Friday June 03, 2011 @07:35PM (#2618393)
Screw MASM. TASM Ideal Mode all the way!