Shop OBEX P1 Docs P2 Docs Learn Events
FemtoBASIC_COLOR Updated with cursor/string support — Parallax Forums

FemtoBASIC_COLOR Updated with cursor/string support

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2009-02-06 15:31 in Propeller 1
FEMTOBASIC_COLOR V2 with AIGENRICcf

Continued modification of FemtoBASIC which incorporates the AiGenericCF_Text_Driver for 40x23 color text.

Changes with this update..

*Friendly, flashing cursor
*Limited string variable support
A,B, & C can now store/manipulate a string type data.
{Added commands, <PRINT A> <IFA="STRING"> <A="STRING"><INPUT"QUERY";A}

Thanks to Mike Green for helping me better understand how the Propeller handles temporary data!
I've about pushed the memory limits of Femto to the wall! Bring on PropII...

-- Continued from the previous version -- (minor change to SYNTH)

FONT "font.64c" Loads a .64c font from the SD card
REDEFINE Redefine the look of a character bit-by-bit
NORMAL Load the "normal.64c" font from the SD Card
SYNTH <Freq>,<duration> Sound command
COLOR <#> Text Color 1-16
NES NES Variable for reading NES controller 0
LOCATE X,Y Locate Command (*fixed to row,col)

This version completes the "COLOR BASIC" modification of FemtoBASIC.
Theres enough here for simple BASIC gaming. <grin>

Included in the .zip are a couple .BAS demos and a few fonts.
Copy them to your SD before launching.

I've left the NOV 2007 version attached for those who would prefer the older version.

OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)

Post Edited (Oldbitcollector) : 4/22/2008 5:04:17 AM GMT


Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-03-19 00:54
    New version with new toys attached to top of thread!

    Thank to Baggers for helping debug the .64 font stuff.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-04-22 04:50
    Updated version with cursor/string support at the top of thread.

    Thanks to Mike for both a fun way to learn spin. {mutilating his program}
    and for continued help understanding SPIN code and answering questions.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • Ym2413aYm2413a Posts: 630
    edited 2008-04-22 10:06
    Thanks Jeff. [noparse]:)[/noparse]
    I'll give it a try later tonight.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Share the knowledge: propeller.wikispaces.com
    Lets make some music: www.andrewarsenault.com/hss

  • BaggersBaggers Posts: 3,019
    edited 2008-04-22 11:31
    looks good, will download now and have a good look later when I get some time [noparse]:)[/noparse]

    Baggers

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-04-22 13:57
    @Baggers

    If I port this to the PropGFX lite, how much graphics overhead (memory) do the required
    video drivers take? I'm betting on I'll get a lot of my memory back for additional graphics functions.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • BaggersBaggers Posts: 3,019
    edited 2008-04-22 14:54
    OBC, it depends on what modes you're gonna use on Lite, if you use a bitmap mode, you'll get more memory back, than a charmap.
    if you have a charmap, it also depends if you keep a local copy of the display? if you have it all on Lite, you'll get pretty much it all back, as the coms takes probably less space than the tv driver uses. and if you store the graphics + fonts on SD, it'll be even less [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • hinvhinv Posts: 1,255
    edited 2009-02-06 05:58
    I know I am behind the times, but I just got FemtoBasicCOLOR working on my demoboard connected to my PSone LCD via a composit video input.
    Is there a VGA version somewhere?

    Thanks,
    Doug
  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-06 07:00
    VGA requires more memory than composite video. With the additions to the interpreter nearly filling memory, it's unlikely that you'd be able to have an equivalent VGA version. You could start with the existing VGA version of FemtoBasic from the Object Exchange and apply some of the changes that OBC has done by comparing versions. With the differences between the display drivers used, some of the changes wouldn't work. Fonts are done differently for example and there's already support in FemtoBasic for display control sequences for setting colors and positioning the cursor. A flashing cursor wouldn't be difficult to add, but would be done differently. The NES and SYNTH statements probably could be added as well as the string stuff.
  • hinvhinv Posts: 1,255
    edited 2009-02-06 14:29
    Thanks Mike,

    I will look into that. I was really excited to get it working last night. Hopefully I will have a package that my son can program soon.
    Can you tell me where to get the latest version including source and binaries? Is 3.006 the latest? OBC's version is 2.004 but has a later date of 20080422

    Thanks,
    Doug
  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-06 15:28
    The latest version is in the Object Exchange.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-02-06 15:31
    The original (updated) versions of Femto including VGA can be found on OBEX. [noparse]:)[/noparse]
    This version is a folk off 2.004. I've seriously considered updating this with a
    VGA driver, but I haven't gotten around to it. Like Mike said, there are bound be
    be a few sacrifices.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
Sign In or Register to comment.