localroger
03-27-2009, 01:19 AM
Greetings everyone -- Prop N00b here, trying to do something useful while teaching myself Spin. I have rewritten PropDOS from the ground up, ditching the music functions but providing much better command parsing and functions for exploring the SD card. I would like to clean this up and release it to the obex on the MIT license. I'll also be doing this with my next project, which is a file system that can *gasp* access more than one file at a time.
My problem is that the aigeneric TV driver which propDOS uses isn't MIT licensed. I've converted to the tv_terminal driver, but that provides only 13 lines on screen. All of the 24 line drivers on the obex are written for the Hydra, and I am going quietly mad trying to get one of them to run on my demoboard. The Parallax drivers and aigeneric seem to have code to just take the lowest video pin as an argument and do the setup, but all of the obex 24-line drivers just say "edit the pasm." OK I've edited the pasm and I can't get any of the blasted things (or any of the other drivers that seem to be based on SimpleNTSC) to display video.
Original lines I know I need to change:
Hydra video is on the low nibble of the pin group at 24, demoboard on the high nibble at 12, so
movs vcfg, #%0000_0111 goes to
movs vcfg, #%0111_0000
and
movi vcfg, #%0_10_101_000 goes to
movi vcfg, #%0_11_101_000
pin 12 is in group 1 not group 3 so
movi vcfg, #3 goes to
movi vcfg, #1
and pin 12 isn't pin 24 so
tvport_mask = #%0000_0111<<24 goes to
tvport_mask = #%0000_0111<<12
I have gone through these drivers line by line looking for anything else that might be appropriate to change and I can't find anything. Does anybody have any idea what I am missing, or if you have a version that's working with the demoboard could you post it for me?
Thanks, and thanks to Parallax for creating the most amazing chip I have seen in years. I only learned that it existed two weeks ago and it's turning my entire job upside down.
--Roger Williams aka localroger
My problem is that the aigeneric TV driver which propDOS uses isn't MIT licensed. I've converted to the tv_terminal driver, but that provides only 13 lines on screen. All of the 24 line drivers on the obex are written for the Hydra, and I am going quietly mad trying to get one of them to run on my demoboard. The Parallax drivers and aigeneric seem to have code to just take the lowest video pin as an argument and do the setup, but all of the obex 24-line drivers just say "edit the pasm." OK I've edited the pasm and I can't get any of the blasted things (or any of the other drivers that seem to be based on SimpleNTSC) to display video.
Original lines I know I need to change:
Hydra video is on the low nibble of the pin group at 24, demoboard on the high nibble at 12, so
movs vcfg, #%0000_0111 goes to
movs vcfg, #%0111_0000
and
movi vcfg, #%0_10_101_000 goes to
movi vcfg, #%0_11_101_000
pin 12 is in group 1 not group 3 so
movi vcfg, #3 goes to
movi vcfg, #1
and pin 12 isn't pin 24 so
tvport_mask = #%0000_0111<<24 goes to
tvport_mask = #%0000_0111<<12
I have gone through these drivers line by line looking for anything else that might be appropriate to change and I can't find anything. Does anybody have any idea what I am missing, or if you have a version that's working with the demoboard could you post it for me?
Thanks, and thanks to Parallax for creating the most amazing chip I have seen in years. I only learned that it existed two weeks ago and it's turning my entire job upside down.
--Roger Williams aka localroger