home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-07-11 | 2.5 KB | 99 lines | [04] ASCII Text (0x0000) |
- ; THIS VERSION IS FOR ANNUNCIATOR MIDI DRIVER AT $9000
- ; SEND MEMORY DUMP VIA RESEARCH SYSEX (F0 7D ... F7)
- ;
- ; DATA SENT IN 7 BYTE CHUNKS USING 8 MIDI BYTES
- ; FIRST 7 BYTES ARE DATA BYTES WITH HI BIT STRIPPED
- ; 8TH BYTE CONTAINS HI BIT FOR THE PREVIOUS 7 DATA BYTES
- ; BIT 7 IS FOR THE FIRST BYTE, BIT 6 FOR THE SECOND
- ;
- ; EACH SYSX MESSAGE IS A PACKET OF 105 DATA BYTES SENT AS
- ; 15 GROUPS OF 7 DATA BYTES, OR 120 MIDI BYTES PLUS 3
- ; BYTES OVERHEAD. THIS GIVES AN EXPANSION RATIO OF 1.17
- ;
- ; MEMORY BUFFER FROM $3000 TO $3FFF WILL BE SENT
- ; (4096 BYTES / 7 = 586 PACKETS = 39 MESSAGES + LAST MSG)
- ;
- ; DISPLAY DOTS ON SCREEN FOR THE 39 MESSAGES
- ; PLAY A NOTE ON AT THE BEGINNING AND END OF THE TRANSMISSION
- ;
- ORG $7000
- MSTS EQU $C0A8
- MIDI EQU $C0A9
- ;
- JMP START
- HIBITS DFB $00
- BUFSTART DFB $00,$30
- NUMMSGS DFB 39
- MSGCTR DFB 0
- ;
- START LDA BUFSTART
- STA BUFPOKE+1
- LDA BUFSTART+1
- STA BUFPOKE+2
- LDA NUMMSGS
- STA MSGCTR
- LDA #$13
- STA MSTS
- LDA #$11
- STA MSTS
- JSR BUFLOOP
- RTS
- ;
- POKEMIDI JSR $9005
- RTS
- ;
- ;BUFLOOP LDA #$F0
- ; JSR POKEMIDI
- ; LDA #$7D
- ; JSR POKEMIDI
- BUFLOOP LDA #$00
- STA HIBITS
- ;
- BUFPOKE2 LDY #15
- BUFPOKE1 LDX #7
- BUFPOKE LDA $3000
- PHA
- AND #$7F
- JSR POKEMIDI
- PLA
- AND #$80
- ASL A
- ROL HIBITS
- INC BUFPOKE+1
- BNE NEXTBYTE
- INC BUFPOKE+2
- NEXTBYTE DEX
- BNE BUFPOKE
- LDA HIBITS
- JSR POKEMIDI
- LDA #$00
- STA HIBITS
- DEY
- BNE BUFPOKE1
- LDA #$AE
- JSR $FDED
- ; LDA #$F7
- ; JSR POKEMIDI
- DEC MSGCTR
- LDA MSGCTR
- BNE BUFLOOP
- ;
- ; LDA #$F0
- ; JSR POKEMIDI
- ; LDA #$7D
- ; JSR POKEMIDI
- LDA #$00
- STA HIBITS
- LDA $3FFF
- BPL LASTONE
- LDA #$40
- STA HIBITS
- LASTONE LDA $3FFF
- AND #$7F
- JSR POKEMIDI
- LDA HIBITS
- JSR POKEMIDI
- ; LDA #$F7
- ; JSR POKEMIDI
- RTS
- ;