Ziron 2 Release
Hello there, this is not actually an official release yet, there is still many things to be done and added, but I'm releasing this alpha release so people can submit bugs of the current supported feature set.
Now there is some changes, and you won't be able to compile old ziron 1 samples just yet, this will not be until the official release. However the features that are implemented are much better than the predecessor.
For example, we now have support for complex if, while repeat statements:
if ((eax == 5) and ((ebx == 2) or ((edx != 23) and (ecx > 15))) { ...
There is also now uninitialized and initialized data, consts are written to read only memory, Support for unicode and other things you can find for yourself.
Once i have an offical release of Ziron 2 i will replace all documentation with up-to-date Ziron 2 documentation.
Also 1 thing to note is Ziron 2 supports only 318 opcodes so far, but i will add another 100+ for the beta release.
instructions supported for the alpha release:
or, bt, jo, jb, jc, jz, je, ja, js, jp, jl, jg, aaa, add, adc, and,
cmp, cbw, clc, cld, cmc, daa, das, jmp, sbb, sub, lea, xor, nop, ud2, stc, std,
dec, inc, pop, bsf, bsr, btc, btr, bts, shl, rcl, rol, ror, sal, sar, shr, rcr,
mov, div, mul, neg, not, ret, jne, jnz, jno, jae, jnb, jnc, jbe, jna, jns, jnp,
jpo, jge, jnl, jle, jng, jpe, call, cdqe, cwde, emms, fabs, fchs, fcos, fld1, fldz,
fnop, fsin, ftst, fxam, goto, int3, push, sahf, seta, setb, setc, sete, setg,
setl, seto, setp, sets, setz, test, idiv, retn, jnae, jnbe, jnge, jnle,
fcom, fadd, fdiv, fmul, fsub, pand, cpuid, f2xm1, fclex, femms, finit, fldpi,
fprem, fptan, fsqrt, fwait, leave, mwait, pause, popad, popfd, popfq, fyl2x, cmova,
cmovb, cmovc, cmove, cmovg, cmovl, cmovo, cmovp, cmovs,
cmovz, setae, setbe, setge, setle, setna, setnb, setnc,
setne, setng, setnl, setno, setnp, setns, setnz, setpe,
setpo, fcomp, fdivr, fsubr, addpd, addps, addsd, addss,
andpd, andps, pslld, psllq, psllw, psrad, psraw, psrld,
psrlq, psrlw, psubb, psubd, psubq, maxpd, maxps, maxsd,
maxss, minpd, minps, minsd, minss, pabsb, pabsd, pabsw,
paddb, paddd, paddq, paddw, pandn, pavgb, pavgw, psubw,
ptest, divpd, divps, divsd, divss, mulpd, mulps, mulsd,
mulss, lddqu, subpd, subps, subsd, subss, xorpd, xorps,
fcompp, fldl2e, fldl2t, fldlg2, fldln2, fnclex, fninit, fpatan,
fprem1, fscale, lfence, mfence, sfence, pushad, pushfd, pushfq,
cmovae, cmovbe, cmovge, cmovle, cmovna, cmovnb, cmovnc, cmovne,
cmovng, cmovnl, cmovno, cmovnp, cmovns, cmovnz, cmovpe, cmovpo,
popcnt, setnae, setnbe, setnge, setnle, andnpd, andnps, comisd,
comiss, haddpd, haddps, hsubpd, hsubps, paddsb, paddsw, phaddw,
phsubd, phsubw, pmaxsb, pmaxsd, pmaxsw, pmaxub, pmaxud, pmaxuw,
pminsb, pminsd, pminsw, pminub, pminud, pminuw, pmuldq, pmulhw,
pmulld, pmullw, psignb, psignd, psignw, psubsb, psubsw, pslldq,
psrldq, sqrtpd, sqrtps, sqrtsd, sqrtss, fdecstp, fincstp, frndint,
fsincos, fucompp, fyl2xp1, monitor, cmovnae, cmovnbe, cmovnge, cmovnle,
movq2dq, paddusb, paddusw, pcmpeqb, pcmpeqd, pcmpeqq, pcmpeqw, pcmpgtb,
pcmpgtd, pcmpgtq, pcmpgtw, phaddsw, phsubsw, pmaddwd, pmulhuw, pmuludq,
psubusb, psubusw, ucomisd, ucomiss, addsubpd, addsubps
high level blocks supported:
if, while, repeat until
Has support for functions, global and local variables and numerous other things which i will go into detail for the proper release.
also note there is no inline or macro support yet.
Please let me know what you think and i hope you enjoy playing around with Ziron 2 alpha.
a small sample to get you started:
program PE32_CUI 'my app';
#include 'win_def.zir';
#include 'zirutils.zir';
#set frame off;
procedure ShowMessageW(wchar* title, msg) {
MessageBoxW(0, msg, title, 0);
}
procedure ShowMessageA(char* title, msg) {
MessageBox(0, msg, title, 0);
}
#set frame on;
//
//
//
mov edi, 0
while (edi <> 6) {
if (edi == 0) {
ShowMessageW("[CN] 信息", "世界您好!");
} elseif (edi == 1) {
ShowMessageW("[JP] メッセージ", "ハローワールド!");
} elseif (edi == 2) {
ShowMessageW("[BG] Собщение", "Здравей Свят!");
} elseif (edi == 3) {
ShowMessageW("[RU] Сообщение", "Привет мир!");
} elseif (edi == 4) {
ShowMessageW("[DE] Nachricht", "Hallo Welt!");
} else {
ShowMessageA('[EN] Message', 'Hello World!');
}
inc edi
}
ExitProcess(0);
note: not really any includes have been added yet, so needed windows functions must be imported for the alpha