??? 04/06/07 05:04 Read: times |
#136714 - Text-based instructions? Responding to: ???'s previous message |
Mike Stegmaier said:
Michael Karas said:
Mike....Are you hand coding in the direct machine code? If so, get your self an assembler and work with the text based instruction set. With a little practice you can learn all the symbolic instructions and you will not have to look at The Opcode Chart anymore.
Michael Karas I want to make my own assembler and use it. then I can use text-based instructions. What, exactly, do you mean by "text-based instructions?" An assembler is a program that takes a line such as, " doit: mov a, count ; load a with the count and translates it into the binary code the MCU wants to see. The first field is a mnemonic (text) label, the second is the opcode, and the third and fourth, delimited with a comma, are the arguments. The fifth field (VERY IMPORTANT!) is the comment. There should be no lines without comments. Even the empty lines should have a comment indicating that they're empty and why. If that's what you want, you will, if you're smart, look at the available freeware ones and pick one with a syntax you like and compatible with a debugger and a simulator that you like. There are several of each available at no cost on the WWW. Happy hunting! RE |