Getting the HC11 to run
The Axiom CME11E9 Evaluation board has a very simple serial interface. I used a serial to USB converter for the laptop.
I used a program called Kermit to allow me to serially connect in a stable way. I tried using gnu-screen, but couldn't figure out how to send code files over to the board that way. I set up a file in ~/.kermrc set line /dev/whatever and set speed 9600. Then you just press the [c] key in kermit to connect through that port. After we do that, in another terminal you can cat the corresponding s file to the port.
The general process was 1. I compiled C-Kermit from source. I could not get gkermit to work. I used the cku302.zip source code from their website and it compiled on ubuntu 20.04. I think that C-kermit has a way of keeping the serial connection 'alive', that I didn't understand how to do with screen or gkermit.
$ m68hc11-as hello.hc11
$ m68hc11-objcopy a.out -O srec
I would go into the output S-record and manually delete lines that didn't match the org directive I sent in my assembly code, then
This produces a file called a.out, which is an S record. S record helps the microprocessor understand where the file should be written to within its internal memory. I had to manually strip out the S file until I got to the part of the file that indicated the actual program I wrote. This only sometimes lets me run a program with the call command. Anyways not sure how much longer I'm going to work on this since it's just for fun.
$ cat my_code.s19 > /dev/ttyWHATEVER
The current areas where there maybe problems is: Generating the S record. I really dislike editing the S-Record by hand in order to send data to the mpu, but as long as I have a breakpoint on the breakpoint table, it seems like it's working.