1. [REL] Not Quite Assembly
- Posted by stabmaster_ at hotmail.com Nov 11, 2002
- 418 views
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