Music in EPROM project
I want to make a set of EPROMs for VTL-2 for the 8080. The 5th EPROM is only used for 9 bytes. What a waste!
The "Fool on the Hill" and "Daisy" songs from Steve Dompler are 215 bytes long. I used a combination of OCR and hand correction to convert the listing into text. From here I will need to convert the octal into hex. I thought I had located an octal to hex online coverter, but I can't find it now! FC10-FCFF are free. That's 240 bytes. (Technically there are 6 more bytes ahead of that if we need them). The music COULD be run out of ROM, but then the tempo and start/stop address could not be changed. Also, the modification for playing the song backwards wouldn't be possible. The loader I came up with is: Code:
01 0000 ;Loader to move 215 bytes from ROM to RAM Does anyone see any mistakes? Here is the data to occur at 0xFC28 to FCFE. Code:
000 LXl H 041 |
I think that I should have added 1 to the test. Because I am increasing the pointer AFTER the copy, I need to be 1 ahead... Unless I put the compare routine BEFORE the copy+increment.
Here is the new version of the code which includes the program/music data. No need for an octal to hex conversion, the assembler can handle it. :) Anyone see any problems before I burn it? By examining FC10 on the Altair and pressing the "RUN" switch the Altair will begin playing music! Much better than sitting in front of the thing for 45 minutes every time. And all of this in the unused part of the VTL ROM. :D Code:
000001 0000 ;Loader to move 215 bytes from ROM to RAM |
Hi Grant;
As Soon as I have some time.:p I will convert your program to octal and enter in at the addresses you have and try to run it on my machine, since it should work, I don't expect any problems, but if there are any, it should show up, I would expect mostly operator error - with the entering - even though I am not using ROM, but Ram instead, that should not make any difference. that will test to see if it is copying all the bytes. And see whether it works !!:eek: Thanks Marty |
Hi Grant;
IF I Remember RIGHT the 'FF' at the end of line 'FCA8' needs to be changed to either '00' or to '02' for the program to play both songs, the 'FF' says to the program to 'stop' and so it won't play the second song. :( I will find out when I toggle it in my machine. :rolleyes: |
Hi Grant;
I put the wrong address for you to look at -- it should be FC98 NOT FCA8.;) Thanks Marty |
I typed in the listing with as few changes as I could. I had to add the tempo and starting address because they were not given in the original documentation.
The scans are available here: (half way down the page) http://www.digibarn.com/collections/...sic/index.html |
music
I enter the program into my computer at 'FC10' and it copied fine and played the song fool on a hill, but because the 'FF' was not changed as stated in my other message above, it would only play fool on a hill, I had to change the 'FF' to an '02' for it to play both songs.:) Thanks Marty
|
All times are GMT. The time now is 11:28 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.