Register | Login
Forum Index > Bugs and Fixes > cdecl calling convention
Author Message
Pages: 1
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1507] cdecl calling convention - posted: 2015-01-22 19:39:26
Code:
program RAW_IMAGE 'test';
#set bits 32;
procedure cdecl MyProc(dword a, b, c){}
MyProc(eax, ebx, ecx);

Result:
Code:
00000000  51                push ecx
00000001  53                push ebx
00000002  50                push eax
00000003  E803000000        call dword 0xb
00000008  83C40C            add esp,byte +0xc
0000000B  55                push ebp
0000000C  8BEC              mov ebp,esp
0000000E  C9                leave
0000000F  C20C00            ret 0xc

There is also Code:
ret 0xc
but this is cdecl.
Also seems that yet not implemented variable number of arguments for internal procedures.
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1508] - posted: 2015-01-22 19:57:05
thanks for report, fixed for next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 5 user(s) online. 0 member(s) and 5 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd