News:

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

Main Menu

Re: The MASM Forum Introduction Video

Started by Vortex, January 25, 2021, 01:40:41 AM

Previous topic - Next topic

hutch--

#45
See if this works for you.

Algo below.  :biggrin:

daydreamer

Quote from: hutch-- on May 11, 2021, 10:35:49 PM
See if this works for you.

LATER : The converted 64 bit will not work.
If I wrap the old alloc macro up,in new macro with added
And hmem, 0fffffff0h
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

hutch--

magnus,

I think this works OK.

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    include \masm32\include\masm32rt.inc
    .686p
    .xmm

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

comment * -----------------------------------------------------
                        Build this  template with
                       "CONSOLE ASSEMBLE AND LINK"
        ----------------------------------------------------- *

  ; --------------------------------------------------------
  ; alignment must be an immediate operand and a power of 2
  ; when no longer required the original address must be
  ; freed with either GlobalFree() or the macro "free".
  ; --------------------------------------------------------

    aalloc MACRO pMem:REQ,bcnt:REQ,alignment:REQ
      mov edx, bcnt
      add edx, alignment
      invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT,edx
      mov pMem, eax
      add eax, alignment - 1
      and eax, -alignment
      EXITM <eax>
    ENDM

    .code

start:
   
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    call main
    inkey
    exit

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

main proc

    LOCAL pMem  :DWORD
    LOCAL aMem  :DWORD

    mov aMem, aalloc(pMem,1024*1024*64,16)

    movntdqa xmm0, XMMWORD PTR [eax]
  ; -----------------
  ; do something here
  ; -----------------
    movdqa XMMWORD PTR [eax], xmm1

    print str$(pMem),13,10
    print str$(aMem),13,10

    ret

main endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

end start

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

hutch--

Thqanks magnus, just hope that folks find the tutes useful.

daydreamer

Quote from: hutch-- on May 23, 2021, 10:46:36 AM
Thqanks magnus, just hope that folks find the tutes useful.
Minimize stackframes is new to use standard proc only
The Milliseconds timing seem more useful,in the long running programs
And animation at certain fps, @ 60 fps you have 1/60 seconds time to drawing code

Seem good for loading speed test to




my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

valera

Hello!
Thank you for your hard work!

daydreamer

Great video :thumbsup:
Similar tool used in C# to make gui control, does that mean I am half metal coder,like to code gui parts?:)

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

Nice video about restore window place :thumbsup:
But might need batch file,to restore to original main screen position, after switch from dual monitor set up where you have dragged app window over to second screen,back to only main monitor
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

nice dialog examples :thumbsup:,usually look at games for ideas to goodlooking cool GUI's
transparency dialogs?

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

hutch--

I mentioned in the post that the example was very understated and was of the style used in business but creating your own bitmaps allows you to do almost anything from really load to very subdued. The idea with test pieces like this is application starters where the basic boilerplate code is up and running and you simply modify the interface with a dialog editor to get the effects that you want.

You will need to do your own artwork in terms of buttons and icons, for bitmaps the ordinary "mspaint" will probably do the job, for icons I have seen a number of reasonable free ones. I have for years used a professional version of Axialis Icon Workshop and it is a very hard tool to improve on.

daydreamer

Quote from: hutch-- on July 24, 2021, 08:30:49 PM
You will need to do your own artwork in terms of buttons and icons, for bitmaps the ordinary "mspaint" will probably do the job, for icons I have seen a number of reasonable free ones. I have for years used a professional version of Axialis Icon Workshop and it is a very hard tool to improve on.
there is also many free 3d apps,where you can make the the retrogames 3d prerendered style when cpus/gpus was limited 3d grunt,I like todo it this way
I spent some years on train 3d modelling beside asm
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding