Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / News

Ziron 2 Release

A community discussion post from the original code:zIRON forum.

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

This update fixes a few bugs with blocks/oop and access violations

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.8

changelog:

07.02.2014: Ziron Assembler 2.0.0.8

	# Fixed instruction based assignment on new variables.
	# Fixed a few problems with ch.zir (Thanks Molotov for reports)
	# Fixed names inside blocks causing redeclared on global identifiers.
	# Fixed occasional access violation due to shared memory on assembler cleanup.
	# Fixed block functions causing compile failure.
Colin admin
Posts
928
Threads
49
Location
Bulgaria

The updates for this release were ready this time last month, but I have not had time to make a release.

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.9

changelog:

14.04.2014: Ziron Assembler 2.0.0.9

	# Added conditional assignments.
		e.g. eax = (edx > 5212) ? true : false;
		or. res = if (ecx < 50) true : false;
	# Added missing code inside print macro for printing int/dword vars.
	# Added more formats for conditional assignment.
		e.g. eax = (edx > 500) ? 100;
		or . eax = (edx > 500) ? : 100;
		or . eax = (edx > 500) ? 100 :;
	# Conditional assignment ? is now optional.
	# Fixed bug when some block sizes were incorrect.
	# Fixed an error caused when the error manager encountered a null data type inside a block.
	# Fixed dates * year in changelog from 2013 to 2014 :-p
	# Fixed assigning variable to variable (Thanks to Molotov for report)
	# Fixed assigning const to variable.
	# Fixed constants interfering with macro variables.
Colin admin
Posts
928
Threads
49
Location
Bulgaria

I'm making an official release before i continue further work with the 64-bit mode (quite a bit has been implemented, but better to get this version out before moving on)

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.10

changelog:

02.01.2015: Ziron Assembler 2.0.0.10

	# Added default parameters for method declaration.
	# Added plugin functions: ziron_token_peek, ziron_eol, ziron_extractline
	# Fixed cdecl functions add esp even when no params were sent.
	# Include directive will not also check the folder relative to the current file (with priority)
	# Plugin onExit was not being called.
	# Fixed plugin onFileEntry event causing access violation when none existant.
	# Added plugin event "function stdcall onFileEntry(DWord handle; char* code; DWord len): boolean;"
	# Fixed a bug with plugin system. (incorrect param count)
	# Fixed a bug with typecasting.
	# Small correction to intrinsic ord when used with registers.
	# Fixed intrinsic sizeof for registers.
	# Added support for call <reg>
	# Fixed a bug when calling an unsupported instruction, sometimes causing access violation.
	# Added plugin interface methods:
		ziron_register_keyword, ziron_unregister_keyword, ziron_expect_token,
		ziron_expect_ident, ziron_curtoken_size, ziron_token_next, ziron_curtoken_int32,
		ziron_curtoken_int64, ziron_curtoken_charptr, ziron_curtoken_wcharptr, ziron_curtoken_real
	# Added keyword events to plugin system.
	# Fixed bug with internal assembler failing incorrectly.
	# New directive #set defaultcc <convention>
	# Implemented very basic asm output param. -asmdebug
	# Possible fix to assembler params not being detected.
	# Optimisation to function calls for MSX64 calling convention.
	# Auto sub/add on HL function calls for 64-bit stack requirement.
	# Now possible to direct call MSX64 functions in HL
	# Added calling convention MSX64 - default windows x64 ABI
	# Experimental 64-bit instruction support.
	# Updated linker.dll to support PE32P (64-bit executables) - PE32P_CUI, PE32P_GUI
	# Fixed exporting cdecl functions symbol name.
	# Added cdecl calling convention support.
	# Fixed linker plugin not exporting functions (Thanks Emil_halim for report)
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Another quick release to fix several issues.

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.12

changelog:

07.01.2015: Ziron Assembler 2.0.0.12

	# Fixed parser detecting /* as comment inside of string.
	# DLL now begin at address $10000000
	# Fixed relocation tables in linker.dll
	# Relocations are not written to an additional section for images.
	# Fixed exported functions not being correctly sorted.
Colin admin
Posts
928
Threads
49
Location
Bulgaria

This release is primarily for updating the linker and a few more fixes.

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.13

changelog:

09.01.2015: Ziron Assembler 2.0.0.13

	# Added new setting stack_size.
	# Added alu instructions inst <reg>, <globalvar>
	# Linker plugin now supports MENUET01 and KOLIBRI32 options. (experimental)
	# Fixed multiple local variables under 1 type using same address (Thanks 0CodErr for report)
	# Linker plugin now has 2 raw formats, RAW_IMAGE and INTEL_FLOPPY
	# Emit plugin can now accept forward reference labels.
	# Passing -1 to ziron_func_get will return current function.
	# Added plugin interface functions:
		ziron_token_ident, ziron_conv_labelref, ziron_func_index
	# Emit plugin can now output ansi strings.
Colin admin
Posts
928
Threads
49
Location
Bulgaria

This release brings a few fixes and improvements.

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.14

changelog:

14.01.2015: Ziron Assembler 2.0.0.14

	# Macro variables and consts will now accept special math operators | % ^ & << >>
	# True now equals any value except 0.
	# Added possibility to reference variable offset using registers.
	# Fixed method byte and words using unaligned addressing. (Thanks 0CodErr for report)
	# Fixed linker plugin export sorting (again)
	# Fixed menuet01 typo in linker plugin (Thanks 0CodErr for report)
	# Fixed macro variables using parent emacro vars.
Colin admin
Posts
928
Threads
49
Location
Bulgaria

New release which had many things updated for cross compilation.

![](http://www.codeziron.com/uploads/releases/ziron2/ziron2_icon.png) Download Ziron 2.0.0.15

changelog:

16.01.2015: Ziron Assembler 2.0.0.15

	# Linker plugin now supports 2 reserved constants _FILE_PATH_ and _PARAM_STR_ in KOLIBRI32 and MENUET01.
	# Fixed typecasting @vars
	# Fixed calling "call" on a method declaration.
	# Possible to declare and call cdecl methods with variable arguments.
	# Added program file type override "-program", e.g. Ziron.exe "src.zir" -program PE32_CUI
	# Added intrinsic $depreciated <text>;
	# Added intrinsic macro $strcat.
	# Intrinsic casttype will accept numbers.
	# Fixed assignment of variables with offsets. (Thanks 0CodErr for report)
	# Constants and Enums now have their own size.
	# Added opcodes cmpsb, cmpsw, cmpsd (Thanks 0CodErr for report)

A small example for cross compiling and displaying path + params

src.zir

program PE32_CUI 'sample';

#include 'platform_def.zir';
#include 'console.zir';

//only technically required for windows, but duds are declared for other platforms for cross comp.
loadPathParam();
 
print('Path: ',_FILE_PATH_, '\n');
print('Params: ',_PARAM_STR_, '\n');
wait_key();

ExitProcess(0);

assuming you have created an environment path for Ziron.exe as %ZIRON%

src.build.bat

"%ZIRON%" src.zir -program PE32_CUI -nopause
"%ZIRON%" src.zir -program KOLIBRI32 -nopause
pause