News:

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

Main Menu

need help getting started

Started by John T, March 14, 2015, 07:03:39 AM

Previous topic - Next topic

rrr314159

I am NaN ;)

nidud

#61
deleted

hutch--

 :biggrin:

> 2 much trouble

I imagine Iczelion would be too complicated for many. None the less his technique was reliable and fast, far faster than the trash around at the time.

jj2007

Strangely enough, when pasted in qEditor, you can see the Russian text:

include \masm32\MasmBasic\Res\MbGui.asm
Event Paint
  GuiText 9, 9, "Добро пожаловать"
GuiEnd

But building that successfully is reserved for a true RichEdit control. While I am not strictly against automatic syntax highlighting (GfaBasic & OllyDbg both have it), I find sparingly used very specific manual highlighting more interesting. Example:

      push edi
      .Repeat
  @@:       lodsb
            cmp al, jdot
            jne @F
            cmp byte ptr [esi], "B"
            jne @F
            inc esi                  ; correct source pos: +2
            inc esi
            jmp @B
  AddLF:   
sub al, 3            ; 13-3=10, LF
            .if dword ptr [esi]=="cu$;"      ;$uc      flag uncomment this line
                  add esi, 4
            .endif
  @@:       stosb
            cmp al, 13            ; GetCurSel text does not contain LF...
           
je AddLF
      .Until !al
      .Repeat
            dec edi
            mov dl, [edi]
      .Until dl!=59 && dl>32
      mov [edi+1], al            ; set delimiter on last whitespace or comment
      pop edi


If I see this sequence years after I've coded it, I might still be able to understand it, thanks to the colouring (this source has over 16,000 lines; it builds in less than a second, loads in less than half a second, and saves in 55ms).

rrr314159

nidud and hutch, it's extremely 2 much trouble to argue about it!
I am NaN ;)