Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
EXTERN MessageBoxA:PROC
MessageBox TEXTEQU <MessageBoxA>
EXTERN ExitProcess:PROC
.data
text db 'Hello world', 0
caption db '64-bit test', 0
.code
main PROC
push rbp ; This push
mov rbp,rsp ; aligns
sub rsp,20h ; the stack.
xor r9d,r9d
lea r8,caption
lea rdx,text
xor rcx,rcx
call MessageBox
xor ecx,ecx
call ExitProcess
main ENDP
END
ifdef __UASM__
ASSEMBLER CatStr <U>, %__UASM__
elseifdef __JWASM__
ASSEMBLER CatStr <J>, %__JWASM__
elseifdef __ASMC__
ASSEMBLER CatStr <A>, %__ASMC__
else
ASSEMBLER CatStr <M>, @Version
endif
; x64 Assembly program to detect MASM or UASM.
.DATA
msgMasm BYTE 'MASM', 0
msgUasm BYTE 'UASM', 0
ChessSolver BYTE 'ChessSolver', 0
.CODE
; Entry point
MyMainProc PROC
; Checks for the assembler using defined macros.
; Checks for MASM.
IFDEF MASM
lea rdx, msgMasm
; Checks for UASM.
ELSE
lea rdx, msgUasm
ENDIF
; Calls MessageBoxA to display the message.
push rbp
mov rbp, rsp
sub rsp, 4 * 8; Allocates space for 4 arguments.
and rsp, -16; Aligns the stack to 16 bytes.
mov rcx, 0 ; hWnd = NULL.
lea r8, ChessSolver ; lpCaption.
mov r9, 0
EXTERNDEF __imp_MessageBoxA:QWORD
call __imp_MessageBoxA
; Exits the process.
xor rcx, rcx ; Sets return value to 0.
EXTERNDEF __imp_ExitProcess:QWORD
call __imp_ExitProcess
MyMainProc ENDP
END
Quote from: daydreamer on February 13, 2025, 07:43:34 AMWhat's happened to this forum ?,nobody wants to test run code anymore ? :(It's usually the OP that supplies the testing method. This will ensure that all testers will use the same testbed (I.e., testing methods), for better comparison between processors where the test is being conducted, and even to test for any differences between OS's etc. that are testing the same function or algorithm.
Quote from: daydreamer on February 13, 2025, 07:43:34 AMWhat's happened to this forum ?,nobody wants to test run code anymore ? :(The skeleton code I wrote earlier is all you need, just add the code you want to test.
I have a comparison that might not been tested yet :
A loop with many scalar compares with conditional jumps vs packed compares ???