News:

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

Main Menu

TEXTEQU IN MASM64

Started by stevenxie, December 06, 2020, 03:55:30 PM

Previous topic - Next topic

stevenxie

HI,EVERYONE.TEXTEQU in MASM64 usage.


include \masm32\include64\masm64rt.inc


.data
     
        rowSize = 10
        lineSize = 10
        count TEXTEQU %(rowSize * lineSize)
        move TEXTEQU <mov>
        setupRBX TEXTEQU <move rbx,count>
       
.code

      entry_point proc
        setupRBX
        conout tab,tab,lf
        conout tab,tab,"rbx=",str$(rbx),lf
        conout tab,tab
        waitkey

        .exit

      entry_point endp
end


hutch--

Yes, its a very useful technique to use. So is the basic EQU operator.

    MyVar EQU <1234>