Rick, makes sense to me. When you're done with this one and are ready to take the next step in user interface evolution let me know. I have some very nice widgets for you [noparse]:)[/noparse]
CassLan said...
@Baggers & OBC- I got a simple Alphabetical file sort going, sorting by only the first character, I'm just trying to be stingy with the·memory at this point, so I can't possibly store all the filenames one might have on their SD card and do a sort from that, instead I'm just using the fsrw.opendir command once per letter of the alphabet, and seeing if·the filenames start with that particular character.·
So are you only showing files by first character? so you can use a smaller buffer?
You could also limit it to certain file extensions.·( .txt .spin .doc etc )
And as for PrEditor, it's a great name [noparse]:)[/noparse] keep that one.
@Baggers- No you will see the whole filename [noparse];)[/noparse] What I meant was that when I learned how to sort, first you'd create an array will all the values, then bubble sort them..I learned several methods but that was a long time and I dont remember the names.
Since I have no idea how many files one could have on the SD (could be 500 right? who knows), I'm only sorting the filenames by the first character..(ALABASTE.TXT may show up before AARDVARK.TXT, but always before BACON.TXT and CLASS.TXT..etc).
But lets see if I can put in a true sort.
Also the the File Name box can have any combo of *.*, *.txt, *.g?? it will all work like the original program.
@Rick, I didn't mean only showing the first letter of the filename, I meant like you press the first letter and those files came up, but you've got it sorted.
if you want an asm filename sorter let me know.
@Baggers- Oh I see what you meant. Not exactly, if your in the Files Box and you type a "k" it will hop to the first File that begins with that letter if it exists. And thanks!
@OBC- At the moment if I remove the File Buffer: Program is 2,544 Longs and Variable is 877 Longs.
It's coming along nicely. The file Dialog is finished including a progress bar to show you how far along within your files you are.
One issue that I'm having is that when you "Page" through the files there is a delay, and its the kind of delay that gets bigger the deeper into the files you are.
I'm going to leave this as-is for now to move forward with the rest.
Completed routines to allow for using WordWrap ON or OFF as displayed in the pictures.
Memory is becoming an issue or at least a worry, as of now I'm using 2,805 Longs for Program + 1,003 Longs Variable, thats with no File Buffer. Add a 15K File Buffer and I'm down to 630 Longs Free/Stack!
So My Plan is to get it going with a 8k~10k File Buffer, then work on optimizing to shrink Program Longs and Increase the File Buffer.
Nice progress [noparse]:)[/noparse]
I'm sure 8K-10K buffer will be fine for most peoples needs anyway!
And those with SRAM can modify it later for a larger buffer [noparse]:D[/noparse]
CassLan: What do you require by VMD using the SD Card? I use a contiguous file (I have one of 32MB) which can be addressed directly within the file. Will that do?
If so, here is a link http://forums.parallax.com/showthread.php?p=786418·on 2009/4/24 where I posted the SD files. See the ZiCog_demo_xxx.spin for the code which locates the file and gets its first sector address. This way, the file (I presume you would be calling it a work file so just rename it before copying it from your pc) can be used directly, and it resides under·FAT16. I·am told·that the card takes care of moving the data when it gets written too many times and this is hidden by the card.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
Cluso99- I don't really think its necesary for this program yet, since most people's text files will fit within a 10K buffer.
The thought popped into my head when I was trying to imagine editing code with this Editor..then I looked at the file size of the main object I'm working on and saw that its 56k!
So..I was just thinking 10K is a bit restrictive but if PrEditor was working on files in 10K chunks at a time and it was seemless to the end user...THAT would be AWESOME!!!
Again, its not something thats going into this first version, just a thought for the future.
CassLan said...
@OBC- Is there a font for AiGeneric that has all the same characters as the TV_Text font?
Rick, the TV_Text font is from ROM and is 16x32 pixels wide, there isn't as yet an 8x8 font version of it.
There was talk about taking certain vertical/horizontal pixels from the rom font to make fonts for a smaller LCD, a while back, although I'm not sure how that went.
I suppose you could do an interlaced screen, and use the rom font, and reduce HX, and try and squeeze a 40x24 and use every other line ( or OR them together ) for the height of the font.
Let me have a play, to see what I can come up with and get back to you on that.
@Baggers & OBC- The reason I had asked was because I got it to work with AIGeneric but the Menus etc rely heavily on the ASCII line characters, that was the only thing out of wack with it. OBC, you mentioned in another post not to long ago about a "font maker" for AiGeneric, maybe that could be used.
@Cole- I was busy with work these past couple of days, but I will get back on track with the PrEditor this weekend, the menu code has been released if you want to play with that. At worst it could be another week Cole.
Baggers said...
There was talk about taking certain vertical/horizontal pixels from the rom font to make fonts for a smaller LCD, a while back, although I'm not sure how that went.
Clemens had two versions of a font (6x12 and 8x12) that used the ROM font as the base and then just selecting certain rows and columns. I put one of them into the XOR mod that I did to the graphics driver that I did. There was some talk at the time about modding one of the tv drivers to use it but everyone decided that it was too hard at the time.
Don't know where the threads that talked about using it in a standard tv driver are. My XOR graphics driver which supports an 8x12 version is in the object exchange.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Noun
Singular
preditor
Plural
preditors
preditor (plural preditors)
1. In the entertainment industry, a job title that combines both the duties of an editor and a producer.
Call me old fashioned but preditor/predator brings to my mind lions and tigers and such first. Not bad people or stupid movies.
I think it's a great name.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
You could also limit it to certain file extensions.·( .txt .spin .doc etc )
And as for PrEditor, it's a great name [noparse]:)[/noparse] keep that one.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
(I'm more of a discovery channel kind of guy, so it works.)
I curious how heavy your code is at this point with the "GUI"?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Since I have no idea how many files one could have on the SD (could be 500 right? who knows), I'm only sorting the filenames by the first character..(ALABASTE.TXT may show up before AARDVARK.TXT, but always before BACON.TXT and CLASS.TXT..etc).
But lets see if I can put in a true sort.
Also the the File Name box can have any combo of *.*, *.txt, *.g?? it will all work like the original program.
@heater- I agree its a great name.
OK Back to it then!
Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
if you want an asm filename sorter let me know.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
@OBC- At the moment if I remove the File Buffer: Program is 2,544 Longs and Variable is 877 Longs.
Rick
Hehe, no malice taken here - it's always worth pointing such things out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again
It's coming along nicely. The file Dialog is finished including a progress bar to show you how far along within your files you are.
One issue that I'm having is that when you "Page" through the files there is a delay, and its the kind of delay that gets bigger the deeper into the files you are.
I'm going to leave this as-is for now to move forward with the rest.
Completed routines to allow for using WordWrap ON or OFF as displayed in the pictures.
Memory is becoming an issue or at least a worry, as of now I'm using 2,805 Longs for Program + 1,003 Longs Variable, thats with no File Buffer. Add a 15K File Buffer and I'm down to 630 Longs Free/Stack!
So My Plan is to get it going with a 8k~10k File Buffer, then work on optimizing to shrink Program Longs and Increase the File Buffer.
Rick
I'm sure 8K-10K buffer will be fine for most peoples needs anyway!
And those with SRAM can modify it later for a larger buffer [noparse]:D[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
very nice application...there are some improvements for usability like the OK button on the right and the CANCEL button on the left
Regards
Giianni
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
@Bill Drummond- That is a great idea, but I'm going to add it to the improvements for next version.
I'm going to start piling the improvements list at the top of the thread, because there have been so many great suggestions.
I won't be needing it for this release, but has anyone written a Virtual Memory Driver using the SDCard?
Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
If so, here is a link http://forums.parallax.com/showthread.php?p=786418·on 2009/4/24 where I posted the SD files. See the ZiCog_demo_xxx.spin for the code which locates the file and gets its first sector address. This way, the file (I presume you would be calling it a work file so just rename it before copying it from your pc) can be used directly, and it resides under·FAT16. I·am told·that the card takes care of moving the data when it gets written too many times and this is hidden by the card.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Post Edited (Cluso99) : 4/28/2009 2:34:54 PM GMT
because it is a standard (99.9% all application are like that) and people are used to have the ok button on the right..
but if you are a creative.. you can keep on the left
Regards
Gianni
The thought popped into my head when I was trying to imagine editing code with this Editor..then I looked at the file size of the main object I'm working on and saw that its 56k!
So..I was just thinking 10K is a bit restrictive but if PrEditor was working on files in 10K chunks at a time and it was seemless to the end user...THAT would be AWESOME!!!
Again, its not something thats going into this first version, just a thought for the future.
Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New ICON coming, gotta wait for the INK to heal, now we have colour!
Also the DropDownMenu Functions used in PrEditor·have been posted: http://forums.parallax.com/showthread.php?p=803515
Rick
The AiGeneric and the Apple][noparse][[/noparse] drivers do 40x24 on tv out
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New ICON coming, gotta wait for the INK to heal, now we have colour!
@OBC- Is there a font for AiGeneric that has all the same characters as the TV_Text font?
Rick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1986 Chevy EL Camino·· No prop yet
1984 Suzukie GS1100GK No prop yet
Rick, the TV_Text font is from ROM and is 16x32 pixels wide, there isn't as yet an 8x8 font version of it.
There was talk about taking certain vertical/horizontal pixels from the rom font to make fonts for a smaller LCD, a while back, although I'm not sure how that went.
I suppose you could do an interlaced screen, and use the rom font, and reduce HX, and try and squeeze a 40x24 and use every other line ( or OR them together ) for the height of the font.
Let me have a play, to see what I can come up with and get back to you on that.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
Hopefully Baggers will have a solution to using AiGeneric for PAL users. *nudge* *nudge* [noparse]:)[/noparse]
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
@Cole- I was busy with work these past couple of days, but I will get back on track with the PrEditor this weekend, the menu code has been released if you want to play with that. At worst it could be another week Cole.
Rick
Clemens had two versions of a font (6x12 and 8x12) that used the ROM font as the base and then just selecting certain rows and columns. I put one of them into the XOR mod that I did to the graphics driver that I did. There was some talk at the time about modding one of the tv drivers to use it but everyone decided that it was too hard at the time.
Here's the original thread on his font http://forums.parallax.com/showthread.php?p=708332
Don't know where the threads that talked about using it in a standard tv driver are. My XOR graphics driver which supports an 8x12 version is in the object exchange.