News:

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

Main Menu

Recent posts

#1
MASM64 SDK / Re: Masm64 SDK installer: beta...
Last post by sudoku - Today at 08:38:03 PM
Quote from: jj2007 on Today at 08:28:03 PMAnd it's only for the first launch of the editor. Afterwards, you can put it wherever you want.
But then you have to move it everytime you open the editor.  :thdn:  I just checked.

Output window??  :undecided:   Its an editor, doesn't need an output window.  :rolleyes:
I'll stick with qEditor.  :azn:
#2
MASM64 SDK / Re: Masm64 SDK installer: beta...
Last post by jj2007 - Today at 08:28:03 PM
Quote from: sudoku on Today at 07:39:39 PMBut tEditor is the same as described above, in regard to its position.

Why oh WHY?

Where is the big problem? It's in a position where you can see both the source and the output window. And it's only for the first launch of the editor. Afterwards, you can put it wherever you want.

See top post for version 4, with grabbing the binaries automated.
#3
In Memory of Hutch' / Re: Hi from Hutch
Last post by Vortex - Today at 07:55:36 PM
Rest in peace Hutch. You will always live in our memories.
#4
The Laboratory / Trimming spaces and tabs insid...
Last post by Vortex - Today at 07:52:59 PM
Hello,

Functions to trim spaces and tabs inside a string :

include     RemoveSpaces.inc

.data

lookupTbl   db 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
            db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1


mystr       db '    This    Is   A       Test String.',0
msg         db '%s',13,10,'Lenght of string = %u',0

.data?

buffer      db 64 dup(?)
buffer2     db 32 dup(?)

.code

RemoveSpaces PROC uses edi ebx str1:DWORD,buff:DWORD

    mov     ebx,OFFSET lookupTbl
    mov     ecx,str1
    mov     edi,buff
@@:
    movzx   eax,BYTE PTR [ecx]
    movzx   edx,BYTE PTR [ebx+eax]
    mov     BYTE PTR [edi],al
    add     ecx,1
    add     edi,edx
    test    eax,eax
    jnz     @b   
 
finish:

    mov     eax,edi
    sub     eax,1
    sub     eax,buff
    ret

RemoveSpaces ENDP

start:

    invoke  RemoveSpaces,ADDR mystr,ADDR buffer

    invoke  wsprintf,ADDR buffer2,\
            ADDR msg,ADDR buffer,eax

    invoke  StdOut,ADDR buffer2
    invoke  ExitProcess,0

END start

Another version without a lookup table :

include     RemoveSpaces.inc

.data

mystr       db '    This    Is   A       Test String.',0
msg         db '%s',13,10,'Lenght of string = %u',0

.data?

buffer      db 256 dup(?)
buffer2     db 32 dup(?)

.code

RemoveSpaces PROC uses ebx str1:DWORD,buff:DWORD

    mov     ecx,str1
    mov     edx,buff
    xor     ebx,ebx
@@:
    movzx   eax,BYTE PTR [ecx]
    mov     BYTE PTR [edx],al
    add     ecx,1

    xor     al,32
    setnz   ah
    xor     al,41
    setnz   bl
    and     bl,ah
    add     edx,ebx

    cmp     al,9
    jnz     @b

finish:

    mov     eax,edx
    sub     eax,1
    sub     eax,buff
    ret

RemoveSpaces ENDP

start:

    invoke  RemoveSpaces,ADDR mystr,ADDR buffer

    invoke  wsprintf,ADDR buffer2,\
            ADDR msg,ADDR buffer,eax

    invoke  StdOut,ADDR buffer2
    invoke  ExitProcess,0

END start
#5
MASM64 SDK / Re: Masm64 SDK installer: beta...
Last post by sudoku - Today at 07:39:39 PM
@jj2007...
Installs okay. But tEditor is the same as described above, in regard to its position.



Why oh WHY?  :undecided:
Otherwise the installer works acceptably. Sample program assembles and runs in tEditor without any issues.  :thumbsup:

Note: All of my drives have a Masm32 installation, since I have 32 bit projects in several locations - so using that to determine where to install Masm64 may not be the best option for everyone. Especially if the installer wants to  install Masm64 to where the first Masm32 directory is found.  :icon_idea:
#6
In Memory of Hutch' / Re: Hi from Hutch
Last post by jj2007 - Today at 07:36:36 PM
Today is Hutch' 76th birthday. RIP.
#7
The Workshop / Re: COM, create rule in Firewa...
Last post by Fraile - Today at 07:23:00 PM
Let's see, the use that is given to this program, I do not get involved in that. In my case, it is part of a development, a security utility, to detect and block unauthorized access, among other things...






#8
MASM64 SDK / Re: Masm64 SDK installer: beta...
Last post by NoCforMe - Today at 06:49:55 PM
Quote from: jj2007 on Today at 04:22:34 PM
Quote from: NoCforMe on Today at 01:10:33 PMOnce this thing becomes a beta test and not a funky alpha test, I'll try it out.
Sorry, I didn't want you to test - we all know how much you hate downloads.
Look, pal, all I can say is that I'm not going to download a piece of shit.
Fix it up, then I'll look at it.

Jesus fucking christ.
#9
MASM64 SDK / Re: Masm64 SDK installer: beta...
Last post by jj2007 - Today at 05:36:30 PM
*** Version 3 uploaded, go to top post and click the new link ***

(if you got ...17June: that was version 2)

I simplified the 'grabbing', hopefully it works better now. Please don't forget that I am working with teditor, trying to modify it as little as possible. This is not RichMasm... teditor is loaded with features in the tool menu that I'll never, ever need, but it doesn't offer a most recently used files list - without which I could never live.

My changes to teditor:
- you can hit F5 for a console build, F6 for a Windows build
- the respective batch files recognise if rsrc.rc is present
- modified the windows position so that you can see better the console with the build errors on the left
- sources with spaces in the name are properly handled now
#10
MASM64 SDK / Re: Masm64 SDK installer: beta...
Last post by jj2007 - Today at 04:22:34 PM
Thanks to everybody :thup:

*** Version 2 uploaded, go to top post and click the new link ***

@Sinsi: I have little hope that we could eliminate the warnings. It's an Assembly program after all...

Quote from: sudoku on Today at 01:03:38 PMThe installation could be improved by making the choice of drive to be installed on

Added a line to the EULA explaining that you can replace D: by C:
By default it picks the drive where your Masm32 installation sits.

Quote from: sudoku on Today at 01:03:38 PMF5 builds console programs...
The file in tEditor should be built with F6, it's a windows program.... (I looked in the menuini.txt file)

Correct, but I build most of my Windows projects in console mode - except the release version.

QuotePossibly even tEditor itself, which is why a console window opens with tEditor (was assembled by you via F5?)...  :eusa_naughty:

Yes indeed, my fault :biggrin:

Quote from: NoCforMe on Today at 01:10:33 PMOnce this thing becomes a beta test and not a funky alpha test, I'll try it out.

Sorry, I didn't want you to test - we all know how much you hate downloads. You should write a better installer, David - the World is boring without competition. I guess we are all waiting for your version :thumbsup: