I complied this code, but there is an error message
How exactly did you compile it, and what exactly is the error message.
Note that this program is written for 16-bit x86 platform and expects to be executed by MS-DOS operating system (or compatible), it may take some work to find an assembler and an emulator to run this today.
Well the complier indicates a problem in the seventh line form the code, which is MOV BA,05H. It states that is probably not defined and a wrong parameter in the code. And I found a program online that runs it.