errantember: (Little Cowboy Scott)
[personal profile] errantember
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.

Profile

errantember: (Default)
errantember

December 2015

S M T W T F S
  12 345
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 3rd, 2025 02:52 pm
Powered by Dreamwidth Studios