Quote:
Originally Posted by Roc
Yes, and it was the first that was realy fun to program in Assembler..
.. i assembled on a peace of paper used a table to search the hex values and entered it with a hex editor .. no kidding ..
|
I know you're not kidding, because I did it exactly the same thing
The first machine code program I wrote was actually on the HeathKit 6800 CPU trainer. I remember writing a digital clock program, completely in machine code, and it was about ~300 bytes (or less)
The company I used to work for (circa 1985, for this issue), had a 20 channel VHF/UHF IMTS telephone switch terminal for car telephones, and the main board was a Motorola 6809 processor with 32KB of RAM.
I had fun changing the 1 second interval NMI timer vector, and pointing it to my own machine code routine, for doing weird things like generating test tones, capturing phone lines, forcing manual connection between a phone line and a channel, etc.
I had a single one byte value, that if changed, it would execute my own vectored routine followed by the original (saved on stack), and then clear the byte. Otherwise, the regular NMI routine would be called. It was fun, and also fun crashing the system when using incorrect OP codes
But system reset was only 5 seconds, even with a 2Mhz clock
I always liked Motorola's CPU arquitectures better than Intel's
-kwag