0 Members and 2 Guests are viewing this topic.
Well, at that point, I didn't know how to access the TI-84+ link port through ARM assembly. Now I do, but I no longer have the source code for the TI-83+ emulator.
Access the link port:To enable the link port, OR the value at 0x900A0000 with 0x20.To disable, AND the same value with ~0x20.
int main(void) { enableLink(); clearScreen(); FILE* wavFile = fopen("HBFS.wav", "r"); char currentSampleLeft, currentSampleRight; while (!isKeyPressed(KEY_84_ENTER)) { } while (!isKeyPressed(KEY_NSPIRE_ESC) && !isKeyPressed(KEY_84_CLEAR)) { fread(¤tSampleLeft, 1, 1, wavFile); fread(¤tSampleRight, 1, 1, wavFile); int count; for (count = 0; count <= 0xFF; count++) { int value = 0; if (count < currentSampleLeft) { value++; } if (count < currentSampleRight) { value += 2; } KEYPAD_84_IO = value; } } fclose(wavFile); disableLink(); return 0;}void enableLink(){ MISC_PORTS |= 0x20;}void disableLink(){ MISC_PORTS &= ~0x20;}