Shop OBEX P1 Docs P2 Docs Learn Events
My FemtoBasic update — Parallax Forums

My FemtoBasic update

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2007-03-23 04:51 in Propeller 1
Femtobasic captured enough of my attention to add some additional commands to it while I'm in the process of learning SPIN. To me it gives the propeller the feel of an early 80's microcomputer, (only with SD/MMC and VGA) so I thought I'd write a game for it.

.zip contains a new Femtobasic with a few additional commands, the intro-boot for an animated game, as well as a test program for the addition of an Atari joystick.

If someone can figure out the LOCATE command issues, I'd be grateful. [noparse]:)[/noparse]

(PS, Mike, I promise I'll move more toward spin development soon.. <smirk>)

Oldbitcollector

Update: for completeness, I've added the joystick interface I used...

Post Edited (Oldbitcollector) : 3/23/2007 4:27:59 AM GMT
408 x 308 - 28K
417 x 403 - 27K

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-23 04:20
    Just so you know ... The DISPLAY command allows you to send numeric byte values to the display, so you can do the HOME, CLR, and LOCATE statements using DISPLAY. HOME would be "DISPLAY 1". CLR would be "DISPLAY 255". "LOCATE x,y" would be "DISPLAY 2,x,y". Look at tv_wtext.spin for the numeric values for the display control codes.

    The corrected LOCATE would be:
              190: 'LOCATE <expr> , <expr>
                    c := expr                     ' Evaluate 1st expression
                    if spaces <> ","           ' Look for comma
                       abort @syn
                    skipspaces                   ' Skip comma and spaces
                    dsp.out(dsp#MoveXY)
                    dsp.out(c)                   ' Output MOVEXY, then x, then y
                    dsp.out(expr)
    
    
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2007-03-23 04:24
    eyes.gif I've gone and redesigned the wheel again, have I?

    Thanks for the fix on LOCATE.. That helps me understand the translation much better.

    Jeff

    Post Edited (Oldbitcollector) : 3/23/2007 4:35:35 AM GMT
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2007-03-23 04:51
    Mike,

    Tried that DISPLAY 2,X,Y without success.. But I'm curious if it is supported in the VGA
    routines. (Which is what I'm using) I get some weird characters from it there.

    Oldbit
Sign In or Register to comment.