Recent Posts

Pages: 1 [2] 3 4 ... 10
11
The Campus / Re: Allocate memory in MASM
« Last post by TouEnMasm on July 02, 2020, 05:20:51 PM »

Help system are numerous but there is one you couldn't avoid it is Internet.
Type "msdn malloc" in a search engine and you will have an answer in a few seconds.
malloc is the favorite function to allocate memory in the CRT,it use heap and there is further functions using it.
Type type "msdn heap" and you will Know all on Heap.
12
The Campus / Re: Allocate memory in MASM
« Last post by deeR44 on July 02, 2020, 04:08:28 PM »
How does one use the old "WIN32.HLP" file, assuming that I can find it? I have nothing that uses ".hlp" files. Thank you for any advice.
13
The Campus / Re: C Sructures help
« Last post by deeR44 on July 02, 2020, 03:22:03 PM »
I'm learning Python. If I need any help with Python, I'm coming right here.
14
MASM64 SDK / Re: Re: May 20, update.
« Last post by hutch-- on July 02, 2020, 10:47:13 AM »
Yves,

64 bit MASM does not use prototypes. The following is probably something you would use with UASM.

GdipBitmapConvertFormat PROTO pInputBitmap:QWORD ,format:DWORD ,dithertype:DWORD ,palettetype:DWORD ,palette:QWORD ,alphaThresholdPercent:REAL4

This is the valid MASM version.

externdef __imp_GdipBitmapConvertFormat:PPROC
GdipBitmapConvertFormat equ <__imp_GdipBitmapConvertFormat>
15
The Campus / Re: push/pop in 64 bit
« Last post by jj2007 on July 02, 2020, 07:47:11 AM »
Pushing a 64 bit register (64 is a multiple of 16) keeps the stack aligned to 16 bit (10h)

Nope. Eax is 4 bytes, rax is 8 bytes, not 16 as you seem to believe. So, as explained above, you can use pairs of push & pop, thus maintaining the 16-byte alignment.
16
MASM64 SDK / Re: Re: May 20, update.
« Last post by TouEnMasm on July 02, 2020, 07:46:02 AM »

I use the original source.
and use the provided  batch with PATH,INCLUDE and LIB
Quote
@echo off
set appname=Images
set PATH=
set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files (x86)\Windows Kits\8.1\bin\x64
set INCLUDE=c:\install64\include64;c:\install64\macros64;c:\install64\m64lib
set LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64;H:\masm32\m64lib

if exist %1.obj del %appname%.obj
if exist %1.exe del %appname%.exe

rc.exe rsrc.rc

ml64.exe /c /nologo %appname%.asm > error.txt

link.exe /SUBSYSTEM:WINDOWS /ENTRY:entry_point /LARGEADDRESSAWARE %appname%.obj rsrc.res >> error.txt

dir %appname%.*

pause

Doing this ,you need to delet all the path in the include files. (not a real problem)
I had need to update the donwload
To made corrections to the two files.
need also to add "includelib C:\install64\lib64\msvcrt.lib "
That's all for today,it is compiled




17
MASM64 SDK / Re: Re: May 20, update.
« Last post by hutch-- on July 02, 2020, 07:34:30 AM »
Yves, the procedures build correctly with the supplied include files and libraries, are you using something different ?
18
MASM64 SDK / Re: Re: May 20, update.
« Last post by TouEnMasm on July 02, 2020, 07:06:41 AM »
Two files need a prototype
Gdip_Save_PNG               and  GDIP_Save_Bmp

Now I miss two sources:
atoi64
i64toa
19
The Campus / Re: push/pop in 64 bit
« Last post by hutch-- on July 02, 2020, 07:00:00 AM »
The answer is don't use win32 techniques in win64. You write to stack addresses without messing up the alignment of the stack. When you use the CALL RET pair you are changing the stack by 8 bytes both ways so you must ensure that your start address is aligned correctly. I have had a quick play with UASM and got it to work but you would need one of the UASM guys to decypher how to set it up so it works OK.

I work with MASM and have multiple stack techniques available to deal with a number of different stack requirements.
20
The Orphanage / High speed chase
« Last post by Magnum on July 02, 2020, 06:56:13 AM »
Pages: 1 [2] 3 4 ... 10