[REL] Not Quite Assembly

new topic     » topic index » view thread      » older message » newer message

I've written a compiler (,translator or whatever works for you) that I've 
dubbed NQA (for Not Quite Assembly). It's basically an assembler with some 
high level constructs. At the moment it's only capable of outputing Windows 
DLLs, but I'll probably have it write EXEs as well in the future. Here's a 
taste of what NQA code can look like:

DEFUN fac(DWORD n)
  mov eax,n
  cmp eax,1
  jg @not_done
  return 1
  @not_done:
  push eax
  dec eax
  fac(eax)
  pop ebx
  mul ebx
  ret
END fac

The compiler is in a very early stage, so a lot of things don't work they 
way they're supposed to right now. But at least the sample program i wrote 
for it works.. :T
You can grab the package at: http://www.cyd.liu.se/~micol972/site/nqar1.zip

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu