Hi, I would like to have a compilable source code for the IBM XT just to learn about the XT's original BIOS and also to learn more about the XT's arquitecture. The first thing I did was to try to OCR the source code from the IBM Technical Reference Manuals, but unfortunatly the source code looked really bad and it had thousands of mistaked which I had to correct them manually and it would take forever. So I tried to find any plain text source for the BIOS and found this one:
http://www.iee.et.tu-dresden.de/~kc-club/DOWNLOAD/DISK401/ROMBIOS.ALL
That code is missing the equates, so I decided to copy them by hand from the "IBM 5160 Technical Reference" (Apendix A-2 to A-5). It also seemed like someone made some simple modifications to the source but I tried to remove them to make it look just like the one in the book. I'm not sure which compiler to use to compile this, I'm guessing they used MASM maybe?? so I downloaded MASM 3, 4 and 6. When I try to compile it with any of them I'm getting this message:
"BIOS.ASM(623) : error 39: One operand must be const"
Line 623 has the following code: "MOV DATA_WORD[OFFSET EQUIP_FLAG],AX" just like the Technical Manual, but the code from the website has "MOV DATA_WORD[EQUIP_FLAG-DATA_BASE],AX" I could not find "DATA_BASE" anywhere. I'll attach the source file in case anyone wants to take a look at it.
Does anyone have any idea what the problem might be?
http://www.iee.et.tu-dresden.de/~kc-club/DOWNLOAD/DISK401/ROMBIOS.ALL
That code is missing the equates, so I decided to copy them by hand from the "IBM 5160 Technical Reference" (Apendix A-2 to A-5). It also seemed like someone made some simple modifications to the source but I tried to remove them to make it look just like the one in the book. I'm not sure which compiler to use to compile this, I'm guessing they used MASM maybe?? so I downloaded MASM 3, 4 and 6. When I try to compile it with any of them I'm getting this message:
"BIOS.ASM(623) : error 39: One operand must be const"
Line 623 has the following code: "MOV DATA_WORD[OFFSET EQUIP_FLAG],AX" just like the Technical Manual, but the code from the website has "MOV DATA_WORD[EQUIP_FLAG-DATA_BASE],AX" I could not find "DATA_BASE" anywhere. I'll attach the source file in case anyone wants to take a look at it.
Does anyone have any idea what the problem might be?