
Microprocessor Lab
Procedure for Programming the EPROM’s
For the 8086 Minimum-Mode Project
To demonstrate the minimum 8086-based board working, you will have to run the similar
program that you wrote and demonstrated on the SDK-86 in the previous lab assignment.
The program was to read data from switches and then display the data on the LED’s,
rotating the display every second. Minor modifications need to be made to the previous
program to run it on the project board. The following are the required modifications:
1. The address for the 8255 ports will be corresponding to the addressing logic used
in your design. For proper address, refer to your address-decoding logic for the
8255 chip.
2. Change the previous program. Have the following format:
.MODEL SMALL
.CODE
ORG 0000H
START:
; Your original program
ORG 0FF0H
JMP FAR PTR START
END START
This way the system will load your program at the proper address when reset.
Save your program with an .asm extension.
3. Assemble the program in the previous section using Turbo Assembler. Turbo
Assembler can be found in the following locations:
Microprocessor lab - C:\MICROLAB\tasm31
It is recommended that you copy Turbo Assembler into your working directory,
where your program is stored. Use the following command to assemble your
program:
Tasm -l (filename).asm, (filename).obj, (filename).lst
Where (filename) is your filename whatever you name, but has to be eight
characters.
4. The program must be linked using Turbo linker. Give the following command to
generate the executable binary:
tlink (filename).obj, (filename).rom
Don’t give .com or .exe extension to the output file. This is for being able to write
the program into the ROM chip.
5. The next step is to create the configuration file for the LOCATE program, which
will generate the code for the chip-writing utility. LOCATE will modify your
program binary so that it will be mapped appropriately to the ROM for your
project. The following text must be put into a file with the filename
(filename).cfg.