Connect with us

How to create a HEX file for 8085 processor along with 2732A eprom

Discussion in 'Microcontrollers, Programming and IoT' started by Anushka Shanitha, Nov 11, 2014.

  1. Anushka Shanitha

    Anushka Shanitha

    1
    0
    Nov 11, 2014
  2. KrisBlueNZ

    KrisBlueNZ Sadly passed away in 2015

    8,393
    1,266
    Nov 28, 2011
    If you have a listing file that includes the output data, but not a binary image or a hex file, you can create a binary or hex file by copying and pasting the output data together (and for a hex file, calculating line checksums).

    A few lines from a typical assembler listing could be something like this:
    Code:
    1234: 56 78     mov  a,78
    1236: 43 21     mov  b,21
    1238: 24 68     mov  c,68
    A line that generates output data consists of an output address, one or more bytes of output data, and the source line (instruction mnemonic, opcode, comments etc). You need to take the output data and construct a hex file from it.

    I assume you'll be using an Intel hex file. Have a read of https://en.wikipedia.org/wiki/Intel_HEX to learn how the hex file is structured. It's pretty straightforward but you will need to calculate the line checksums by hand.
     
    Anushka Shanitha likes this.
  3. Allen Bong

    Allen Bong

    3
    1
    Dec 5, 2014
    I am really surprised that someone still uses the 8085 to do a project. And I am more surprised to see that the chip is still available on eBay for $9 a pop.

    Wouldn't it be easier to use 8051, then the hardware would be simpler without using the 8255 and the 4K EPROM?

    Allen
     
  4. KrisBlueNZ

    KrisBlueNZ Sadly passed away in 2015

    8,393
    1,266
    Nov 28, 2011
    He may not have written the code himself and he may not be able to translate it from the 8085 to the 8051 architecture. They are quite different you know.

    The 8051 doesn't have the resources that the 8085 has. It cannot address RAM directly using direct 16-bit addresses and multiple pointer registers the way the 8085 can. Major redesign would probably be needed to convert the code to run on the 8051.
     
    Allen Bong likes this.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-