News:

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

A complet useless Tool ?

Started by ToutEnMasm, July 26, 2011, 12:53:51 PM

Previous topic - Next topic

ToutEnMasm


I have played a little with a sdk sample (async).Translated in masm by /FA , i have try to compile it.SUCCESS with  very few changes in it.
Perhaps is there somewhere a tool who can made  the code more readable ?

ToutEnMasm

after further tests , the needed changes ae those:

add :    option casemap :none   ; case sensitive
add :   libraries
Modify this lines:
Quote
;   COMDAT rtc$TMZ
rtc$TMZ   SEGMENT
__RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown
rtc$TMZ   ENDS
;   COMDAT rtc$IMZ
rtc$IMZ   SEGMENT
__RTC_InitBase_rtc$IMZ DD FLAT:__RTC_InitBase
; Function compile flags: /Odtp /RTCsu /ZI
rtc$IMZ   ENDS

The . in  down.rtc must be change in _ as in Base_rtc.The lines with the . can be also change in comment
I don't know for which usage this lines are Here ?

IT seems there is not too many works to made a readable and classic asm file.


ToutEnMasm


Here is  a sample to interest a little the subject.
offset ??$@@ have been changed
The frame proc is now  normal masm proc with his locals variables.
functions and variables have been undecorated and use include files.
My tool do no more at the instant.

ToutEnMasm


This one is the sample  sendto translate from the windows sdk
Quote
*      This sample program illustrates the following points:
*
*      -   Enumerating the contents of the "Send To" folder.
*
*      -   Obtaining the IDataObject interface for a file.
*
*      -   Obtaining the IDropTarget for a shell extension.
*
*      -   Dropping a file onto an item thus enumerated.


ToutEnMasm

Other sample from the windows SDK async
Use macros to be more easy with pointers and give a c++ look to .asm
Quote
InternetOpen
InternetSetStatusCallback
InternetConnect
HttpOpenRequest
HttpSendRequest

qWord

hi,

Your macros are called in a multithreaded environment (especially: the function InternetStatusCallback), but your macros are not thread save because your are using global variables. You may change your macros/concept and use local variables.

qWord
FPU in a trice: SmplMath
It's that simple!