The as31 is a 8051 assembler. I use it to generate code for the FX2 by Cypress.
The version of the as31 on this page is a patched version of the original as31 which you find here. I've added an include directive which allows to include header files. The syntax is:
.inc INCLUDEFILE
Here's my include file for the FX2: fx2-include.asm