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
ObjAsm / Re: New Editor
Last post by Biterider - Today at 12:30:22 AM
Hi
I've made some progress with the scripting engine. 
This is my first useful script for trimming trailing spaces from each editor line:

-- Purpose: Trim spaces at the end of each line.
 
Application.FreezeUI()
hEdit = Application.NewEditor("ADE.ini")
Editor.Show(hEdit)
for i = 1, Editor.GetLineCount(hEdit), 1
do
  LineContent = Editor.GetLineText(hEdit, i)
  j = string.len(LineContent)
  k = j
  while (j > 0)
  do
    if string.sub(LineContent, j, j) ~= " " then break end
    j = j - 1
  end
  if k ~= j then Editor.SetLineText(hEdit, i, string.sub(LineContent, 1, j)) end
end
Editor.Close(hEdit)
Application.UnfreezeUI()
Application.MsgBox("Operation successfully finished.", "Information", 0)

It runs smoothly. 
An performance test must be done, but it seems quite fast at first glance.

Biterider

#2
The Workshop / Re: Looking for MASM feature p...
Last post by Shintaro - June 22, 2025, 04:52:51 PM
Thank you!!!

I have been searching for that for ages!

Maybe they thought it was no longer needed.

Thanks again.
#3
The Campus / Re: Nested .REPEAT, .IF and .W...
Last post by Quan - June 22, 2025, 04:15:10 PM
Yea, that doesn't work. I did find out about the .BREAK directive, but it doesn't really do the same thing.

Quote from: _japheth on June 22, 2025, 12:37:33 AMNo, since this is an error and no warning. You have to use the LOCAL directive ( inside the macro and tightly following the MACRO directive) to declare your label inside the macro as "local".
Got it, thanks  :thumbsup: I totally misunderstood the purpose of the LOCAL directive. I thought it was for declaring local variables and not labels. It's working now, thanks!
#4
The Campus / Re: FillConsoleOutputCharacter...
Last post by NoCforMe - June 22, 2025, 09:47:51 AM
Well, it looks to me as if you haven't figured out why it didn't work in the first place, so you've learned nothing. Poking code here and there in hopes it might work isn't the way to learn how to code.

Plus, any reason you're using 64-bit assembly? 32-bit is much easier and more straightforward, plus the MASM32 package is pretty complete and robust, unlike MASM64 which is kind of a piece of shit at this time.
#5
The Campus / Re: FillConsoleOutputCharacter...
Last post by zedd - June 22, 2025, 09:38:37 AM
Quote from: sskaiser on June 22, 2025, 01:36:29 AMsorry for wasting your time
Its not wasted time. As I do not know your level of experience, I must ask seemingly silly questions sometimes.

Quote from: sskaiser on June 22, 2025, 01:38:34 AMAnd to answer your questions I did use the GetConsoleScreenBufferInfo and made sure it works...
:thumbsup:

Quoteand I use VS Community 2022 to watch the registers, function returns 1 so i guess no errors
Okay.  :smiley:
#6
The Campus / Re: Nested .REPEAT, .IF and .W...
Last post by NoCforMe - June 22, 2025, 06:39:29 AM
Quote from: mabdelouahab on June 22, 2025, 05:00:54 AM        .IF !ZERO?
                    ;GOTO found
        .ENDIF

??????
Looks like net effect is ... nothing.
#7
UASM Assembler Development / Re: Linux users, please
Last post by mabdelouahab - June 22, 2025, 05:28:53 AM
hi LordAdef
I'm excited about the project, even if my time is limited. Where do you suggest we begin?
#8
The Campus / Re: Nested .REPEAT, .IF and .W...
Last post by mabdelouahab - June 22, 2025, 05:00:54 AM
.IF !ZERO?
                ;GOTO found
.ENDIF
#9
Windows API / Re: How do I get access to my ...
Last post by NoCforMe - June 22, 2025, 04:48:19 AM
I wrote up a tutorial on how to do recording with Windows Waveform Audio, attached here.
Wish I had a website to publish this on, but this'll have to do. I think it pretty much covers the subject. Could even be used by non-assembly-language programmers.

(This was inspired by the tutorial that Timo posted a link to earlier in this thread.)
#10
The Campus / Re: FillConsoleOutputCharacter...
Last post by sskaiser - June 22, 2025, 01:38:34 AM
And to answer your questions I did use the GetConsoleScreenBufferInfo and made sure it works and I use VS Community 2022 to watch the registers, function returns 1 so i guess no errors