Register | Login
Welcome To code:zIRON

Ziron is a mixed high and low level programming language; but unlike other high level compilers, Ziron directly assembles the high level code into machine code. Ziron is intended to allow advanced programmers to write highly optimised code, but also for new and beginners to take a step into the world of assembly programming without the worry of a low level syntax.




(Sample) Building Blocks (structures):


Code:
program WIN32CUI 'test';

#include 'ch.zir';
#include 'fileio.zir';

////////
const strFileName = 'text.txt';
ZFile file;
char buf[512];
/////

inline procedure doFileOperation() {
  file.writeBuffer('Hello, World!\r\n');

  file.setSOF();

  file.readBuffer(@buf, 512);
  file.close();
  print(@buf);
}

if (file.append(strFileName) == True) {
  print('Appending file "', strFileName, '"\r\n');

  doFileOperation();
} else {
  print('Creating file "', strFileName, '"\r\n');

  if (file.create(strFileName) == True) {
    doFileOperation();
  } else {
    print('Unable to create file "', strFileName, '"\r\n');
  }
}

wait_key();
ExitProcess(0);

Latest Topics

Augmented assignment
Admin
Requests and Feedback

build.all examples
0CodErr
Samples

Merry Christmas!
Admin
General Discussion

Nested procedures problem
Admin
Bugs and Fixes

Ziron 2 Release
Admin
News

StrUtils
Admin
RTL

const Copyright = '2011-2017 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd