Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
Quote from: Biterider on September 08, 2024, 08:47:09 PMI noticed that the line endpoints are always cut vertically.
Quote from: Biterider on September 08, 2024, 08:47:09 PMPerhaps a more flexible approach...
Maybe we can save some cycles ...
Quote from: HSE on September 07, 2024, 11:39:22 PMTo build an application that show results in DebugCenter are used a couple of includes and a library, like for any debug system.
Quote from: Biterider on September 07, 2024, 03:57:16 PMIt comes in very handy
Quote from: NoCforMe on September 07, 2024, 12:39:51 PMI don't use ObjAsm.
pinADcallWIN:
push rbp
push r11
push r12
push r13
push r14
push r15
mov rbp, rsp
cmp r9, 1
je _winCall1
cmp r9, 2
je _winCall2
cmp r9, 3
je _winCall3
jmp _winCall4p
_winCall1:
mov rsp, rdx
movsd xmm0, qword ptr [rsp]
pop r11
mov rsp, rbp
jmp __winCall
_winCall2:
mov rsp, rdx
movsd xmm0, qword ptr [rsp]
pop r11
movsd xmm1, qword ptr [rsp]
pop r12
mov rsp, rbp
jmp __winCall
_winCall3:
mov rsp, rdx
movsd xmm0, qword ptr [rsp]
pop r11
movsd xmm1, qword ptr [rsp]
pop r12
movsd xmm2, qword ptr [rsp]
pop r13
mov rsp, rbp
jmp __winCall
_winCall4p:
mov rsp, rdx
movsd xmm0, qword ptr [rsp]
pop r11
movsd xmm1, qword ptr [rsp]
pop r12
movsd xmm2, qword ptr [rsp]
pop r13
movsd xmm3, qword ptr [rsp]
pop r14
mov rsp, rbp
sub r9d, 4
jz __winCall
add rdx, 24
imul r9, 8
mov r15, r9
__winCallLoop:
push qword ptr [rdx + r9]
sub r9d, 8
jnz __winCallLoop
__winCall:
mov rax, rcx
mov rcx, r11
mov rdx, r12
mov r8, r13
mov r9, r14
sub rsp, 32
call rax
add rsp, r15
add rsp, 32
pop r15
pop r14
pop r13
pop r12
pop r11
pop rbp
ret