Download Pelles C here: http://www.pellesc.se
Quote from: alderman2 on February 24, 2026, 08:57:40 PMMrBcx:
Are you a developer/owner of BCX?
I have it installed on my computer. Interesting program.
include SaveRegs.inc
SaveRegs MACRO
mov QWORD PTR [rbx],rcx
mov QWORD PTR [rbx+8],rdx
mov QWORD PTR [rbx+16],r8
mov QWORD PTR [rbx+24],r9
ENDM
.data
msg db 'Hello!',0
msg2 db 'rcx,rdx,r8 and r9 are saved.',0
title db 'MsgBox',0
title2 db 'Macro test',0
.data?
mainRsp dq ?
.code
start:
sub rsp,8+4*8
push rsp
pop mainRsp
invoke main,ADDR msg2,ADDR title2,10,20
invoke ExitProcess,0
main PROC uses rsi rdi rbx x:QWORD,y:QWORD,w:QWORD,z:QWORD PARMAREA=4*SIZEOF QWORD
LOCAL temp1:QWORD
mov rbx,mainRsp
SaveRegs
xor rsi,rsi
mov rdi,1
invoke MessageBox,0,ADDR msg,ADDR title,0
; The first call to MessageBox destroys rcx,rdx,r8 and r9
invoke MessageBox,0,[rbx],[rbx+8],0
ret
main ENDP
END start
Page created in 0.067 seconds with 15 queries.