??? 02/09/07 09:21 Read: times |
#132339 - Sooooooooooooooooooooooooooooooooooooo complicated Responding to: ???'s previous message |
Mike Stegmaier said:
I can write the code, BUT here's the catch. The code must be hardwired. The reason for that is because the code must run, even if the rom is not programmed (example: a new chip has beem put in). This is what's commonly known as a "Boot loader" Rather than me manually writing out the codes for each instruction on paper, and manually decoding it, I want to automate the whole thing. Yes that's what an Assembler does for you. (or a Compiler, if you use a high-level language) because I want to avoid wasting two months or more on creating the optimal circuit. I think you would be wasting significantly longer than that and end up with some thing distinctly sub-optimal! The easiest way out is to use a bunch of "and" gates and inverters, but if I can avoid that, I will be happier. No - the easiest way out is to have a separate ROM chip with just the "Boot loader" code in it Then you just need some fairly simple logic to switch between the "Boot loader" and the "real" code once it becomes available. Think about it - this is pretty much how a PC works: the basic start-up from cold is in ROM, this gets the system to a point when it is able to load something from disk... |