Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Copy program to eprom and run, what form?

Status
Not open for further replies.

Mr.Big

Junior Member level 3
Joined
Apr 17, 2014
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,400
If I want to store a program for e.g. a Z80 processor on a Sram or
Eprom that is ordered from several files, e.g. .bin files.
files.
If I want to run them directly on the Z80, do I have to convert the
probably convert them to asm before?
And then? is it then only one file?
And if not, how do you convert it to a "file"?
Or do I have to convert it like a disk image into a .DSK format
which would be only a file and then transfer this content to the eprom?
to the Eprom?
 

Assembly language is for humans to deal slightly less
with machine op codes in binary form. There is no use
for going backward. Unless you have additional "bare
metal" programming to do. Which you may well.

Willem EPROM / EEPROM programmer has worked for
me at programming 32K, 64K UV EPROMS. Serial port
version may have been replaced by USB by now.

The whole "how does this piglet boot, anyhow?" deal
needs to be comprehended; you have to somehow
point execution to the start of the program code space.

I don't think that just jamming ".bin" files into a nonvolatile
memory is going to give you what you want, without some
effort at chaining them and getting the hardware to boot into
the right place, in the first place.
 

Conversion to asm - almost certainly no.

The consideration is that if those BIN files are a program or part of a program they have to be loaded at specific addresses in the memory to run. The program will contain fixed addressed (an address to 'jump' to for example) and EE/EPROMPS contain linear addresses. Even the start address will be somewhere in one of the BIN files so it has to be at the address the processor selects after a reset.

If you know what program created the BIN files it would help, if they are pre-assembled modules from a single program they would normally be passed through a 'linker' which would convert them into one larger file that is ready to use. Otherwise you would have to know exactly which addresses in the memory each binary file had to be loaded in to. The programming utility might have an option to load them at specified addresses or you could use a hex editor to create an empty binary file and copy the contents of the individual files in to it at the appropriate addresses, saving the result as a single entity.

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top