THE ENVI85 ASSEMBLER


ENVI85A is an integrated editor-assembler-emulator for the 8085 which makes programming the 8085 less miserable. It runs in DOS.

I made available an integrated assembler for the 8085, but it had the peculiar feature of not setting the accumulator flags when executing INR and DCR with arguments other than the A register. I now have a different version which corrects this problem. Consider this an alpha version of the new assembler, because I have not had a chance to exhaustively test it. If bugs crop up I can only respond, "Hey, the program I waded through had about 12,000 lines of code, and I hadn't looked at the program in about 6 years." If no bugs crop up, then I will say, "It only took me about an hour to find where to make the change and to change the program. Now you see why top-design is so effective." If you report bugs, I will try to fix them. [Addendum, added 3 June 2010. After 20 years, someone found a real bug in the way that we implemented the DAA instruction. We did not account for the CY flag when the accumulator contents were greater than or equal to FF09H. I fixed it. It took only another hour of my time, although the code belonged to Stefan Fedyshcyn, my partner in this enterprise. It has been so long since I looked at the code, around 14 years, I am unsure I fixed the right version. In any case, it is accessible below as envi85b. Thanks to Stefan for writing clear code. Thanks to Fung Felix for pointing out the bug. You spot 'em, I swat 'em.]

The following files are available: envi85.exe (does NOT set flags when INR or DCR to zero), envi85a.exe (does set flags when INR or DCR to 0), documentation , a summary of this page, and a zip file of the preceding four files. [Added, 3 June 2010 envi85b.exe ]

The files "envi85.exe", "envi85a.exe", "envi85.doc", and "envi85.readme" are also available by ftp from ftp.cse.lehigh.edu in the subdirectory /pub/cse. The file envi85.exe has the code for the original version, where the 0 flag is not set when a register other than A is DCRed or INRed to 0. The file envi85a.exe has the code for the new version, which does set the flag under these circumstances. The files envi85.exe and envi85a.exe should be downloaded in binary mode, the other two files in text mode. As an alternative, you can download the "zip" file ENVI85.ZIP (which contains the four files) in binary mode and then use PKUNZIP to unzip them.

Please note that I have not changed the documentaion in ENVI85.DOC to reflect the changes I made for INR and DCR.


URL: //www.lehigh.edu/~ejk0/envi85.html

Last Modified: Thursday 3 June 2010.