kasm2


Warning

This is still not a stable compiler. Please check your binary, and send me bugs if you find one.

Why another Masd compiler ?

Kasm is the only Masd compiler, but it contains some bugs, and don't do all what MASD can do. Kasm starts in RPL mode, instead of ASM mode, which is the default mode on HP's MASD. So you had to add CODE and ENDCODE at the beginning and the end of your main source file, to mimic the original MASD behaviour. Futhermore, here's the list of what kasm2 can do that kasm don't :

  • kasm2 starts in ASM mode, so you do not need anymore to add CODE and ENDCODE at the beginning and the end of your main source file.
  • kasm2 support insertion of datas of any lenght with $.
  • kasm2 support labels with numbers.
  • kasm2 support of !FL= and !?FL= directives.
  • kasm2 support of include macro with /.
  • kasm2 support of include ASCII with ¢.
  • kasm2 support local labels.
  • kasm2 can now be compiled by gcc3. (Thanks to youpi for some tips).

Now, with kasm2 you don't need any tricks to have your MASD files compiled.

Here's some features, still not fully tested :
  • support of !ADR, !EVEN, !ABSOLUTE, !ABSADR directives.
  • support of !ASM, !RPL directives.

Bugs

  • Still no support for link labels.
  • Maybe RPL mode is broken, I don't do RPL :).

Documentation

kasm --help

Download kasm2

Download tarball