News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Cleanning asm files

Started by Grincheux, January 09, 2016, 06:00:50 AM

Previous topic - Next topic

guga

Quote from: JochenThe eye is forced to jump from extreme left to extreme right, every now and then losing the line etc... a nightmare for me, and yet there are many coders who seem to love this style 8)

Me too. It is extremely hard to follow. But, it has worst :icon_mrgreen: Try reading a source with 1 Mb containing everything at the beginning of the line without paragraphs, such as (including comments):

Main:
xor eax eax
cmp eax 5
je L5>
shl eax 3
.....


Easy for a few lines, but on big sources..OUCH ! :icon_mrgreen:
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

Grincheux

When I began to program, we had no computer, we had to write on a paper and respect the columns. Cobol language... That is certainly for this reason... Later i program in fortran, same thing... remember format, comments, varialbles beguinning by I...

Grincheux

If you want I have a new version without the bug found in scancode.asm from masm32 examples.

Binary
Source & Binary

You can find a line like this one :

Quoteinclude\masm32\include\masm32rt.inc

It is not an error the syntax is accepted by Masm

Here are some stats :

Quote
ProcVariants SFX.exe........= 190Kb
ProcVariants.asm.exe........= 189Kb
ProcVariants.asm.............= 12Kb (Original file)
ProcVariants.asm.txt.........= 8Kb (Modified by CleanAsm.exe)
ProcVariants.zip...............= 4Kb
ProcVariants.asm.txt.7z.....= 3Kb
ProcVariants.asm.zip.........= 3Kb