MIDIStroke Endpoint #1
Dec. 12th, 2008 02:06 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
So I've finished processing the first MIDI subroutine in MIDIStroke. The good news is that this is definitely the subroutine that takes the raw MIDI data and translates it into something more palatable by the rest of the program.
It takes the incoming MIDI messages, runs through a big if/then structure, and puts a certain number into r31 based on the result. It makes a call out to a system function the assembler of which I don't currently have, and after one of these calls, near the end of the routine, the character (if any is mapped) pops out. However, there doesn't seem to be an comparison logic inside this part of the program that tests to see if the incoming message actually *matches* something in our list, which is the main thing I'm interested in. This must be happening somewhere else. However, I'd be willing to bet the matching is done with the special code that's placed into r31, so this part was necessary to get that first mapping from raw MIDI -> special code, so I can understand later how this maps from special code -> character output.
I added a spoonful of rum to my tea to see what the pound cake I made earlier would taste like if I had added rum to the recipe, and after three pieces, I'm feeling pretty tired. It may be time to quit for tonight.
It takes the incoming MIDI messages, runs through a big if/then structure, and puts a certain number into r31 based on the result. It makes a call out to a system function the assembler of which I don't currently have, and after one of these calls, near the end of the routine, the character (if any is mapped) pops out. However, there doesn't seem to be an comparison logic inside this part of the program that tests to see if the incoming message actually *matches* something in our list, which is the main thing I'm interested in. This must be happening somewhere else. However, I'd be willing to bet the matching is done with the special code that's placed into r31, so this part was necessary to get that first mapping from raw MIDI -> special code, so I can understand later how this maps from special code -> character output.
I added a spoonful of rum to my tea to see what the pound cake I made earlier would taste like if I had added rum to the recipe, and after three pieces, I'm feeling pretty tired. It may be time to quit for tonight.