Jump to content

Photo

fbForth Updates

fbForth Forth TI Forth

32 replies to this topic

#26 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • Topic Starter
  • 3,391 posts
  • Location:Silver Run, Maryland

Posted Tue Oct 24, 2017 10:13 AM

I just posted my fbForth 2.0 version of Dark Star, which was ported (with permission) from Mark Wills’ TurbForth version.

 

...lee



#27 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • Topic Starter
  • 3,391 posts
  • Location:Silver Run, Maryland

Posted Fri Nov 10, 2017 1:33 PM

A new FBLOCKS ZIP file has been posted on fbforth.stewkitt.com in “Downloads-->System Files” as well as in post #1 of the fbForth development thread.  It adds a new welcome screen that allows choosing white-on-blue text modes instead of the usual blue-on-white, as well as reports of SAMS capability and low and high memory amounts.  It also offers ports of TurboForth's BLK>FILE and FILE>BLK utilities.

 

...lee



#28 atrax27407 ONLINE  

atrax27407

    Dragonstomper

  • 778 posts

Posted Sat Nov 11, 2017 12:24 PM

Here is a screen shots of my customized fbFORTH boot screen.

Attached Files



#29 atrax27407 ONLINE  

atrax27407

    Dragonstomper

  • 778 posts

Posted Sat Nov 11, 2017 12:25 PM

Ana a screen shot of my MENU screen.

Attached Files



#30 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • Topic Starter
  • 3,391 posts
  • Location:Silver Run, Maryland

Posted Sun Nov 12, 2017 1:25 PM

Here is the latest startup, with choosing white on blue for text modes:

 

Attached File  fbforth_startup20171110.gif   257.12KB   0 downloads

 

...lee



#31 Ksarul OFFLINE  

Ksarul

    River Patroller

  • 4,219 posts

Posted Sun Nov 12, 2017 4:50 PM

That looks very nice on the eyes, Lee. . .



#32 Willsy OFFLINE  

Willsy

    River Patroller

  • 3,024 posts
  • Location:Uzbekistan (no, really!)

Posted Wed Nov 15, 2017 3:47 AM

I just posted my fbForth 2.0 version of Dark Star, which was ported (with permission) from Mark Wills TurbForth version.
 
...lee

That's great! Runs lovely in fbForth. Did you find it straightforward to port? I seem to remember I wrote the code in a self-documenting style.

Edited by Willsy, Wed Nov 15, 2017 3:48 AM.


#33 Lee Stewart OFFLINE  

Lee Stewart

    River Patroller

  • Topic Starter
  • 3,391 posts
  • Location:Silver Run, Maryland

Posted Wed Nov 15, 2017 10:06 AM

That's great! Runs lovely in fbForth. Did you find it straightforward to port? I seem to remember I wrote the code in a self-documenting style.

 

Though porting of Dark Star was not really straightforward, the way you wrote the code definitely made the job easier.  Here is some of what I had to change:

  • DATA[ ... ]DATA for <count> DATA ...
  • ' <word> CFA for ' <word>
  • 0= for NOT (fbForth uses 1 for returning TRUE; TurboForth returns -1)
  • <value> VARIABLE <word> for CREATE <word> <value> , ( CREATE works differently in fbForth)
  • convert numbers with leading $
  • Reorder stack arguments for GCHAR HCHAR COLOR
  • ?KEY for KEY?
  • Define U0. using <# # # # # # #> for U. with leading zeros
  • JCRU with player 1 for JOYST with player 0 (fbForth does have JOYST , but it works differently)
  • To keep the logic for BrickRows the same, I had to trick fbForth into believing the end of the screen was 1 character beyond its normal position
  • Changed definition of 'LevelData from using C, to a multi-block DATA[ ... ]DATA (This was not really necessary, but dramatically reduced load time)
  • To retain much of the logic, I defined several TurboForth utility words missing from fbForthVALUE TO +TO 2* CELLS -ROT PICK <> >>

There may have been a couple of other changes, but the above was the bulk of it and, as you can see, not exactly straightforward.

 

...lee







Also tagged with one or more of these keywords: fbForth, Forth, TI Forth

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users