+3  A: 

not sure if that's what you want but haXe is opensource. haXe has also a library that can produce bytecode from haxe code.

Cristi Băluță
haXe’s format.abc is close what I’m looking for, but I’d like to be able to write code directly in assembly, not haXe code that generates assembly.If I can’t find a better option, this is probably what I’ll use; the haXe library looks like it’s very well done.
also
A: 

It looks like As3c is what I'm looking for:

As3c is a bytecode compiler for the AVM2 written in C#.

also