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: 932
Topics: 54

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 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 999, May 11, 2018, 10:01 am.


Statistics:
Threads: 224 | Posts: 1847 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2021 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd