Jump to content
  • entries
    4
  • comments
    12
  • views
    5,568

About this blog

A series of tutorials on learning to use Forth, particularly fbForth 2.0

Entries in this blog

 

Lesson 3a: Better Temperature Conversion Words

[font=Arial]We can write better temperature conversion words than we did at the end of the last lesson.  If you thought that the words using [/font][b]/MOD[/b][font=Arial] were contrived to introduce [/font][b]/MOD[/b][font=Arial] , you were mostly on target.  To obviate the necessity of using [/font][b]/MOD[/b][font=Arial] , all we need to do is to manage the dividend before division by adding half of the divisor.  As before, we must adjust the sign of the rounding term to match the sign of the

Lee Stewart

Lee Stewart

 

Lesson 3: Stack Manipulation and a Little Programming

[font=Arial][size=4]In this lesson we will learn a few new arithmetic words, several words for stack manipulation and how to use them all in programming, [i]i.e[/i]., defining new words.[/size][/font] [font=Arial][size=4] [/size][/font] [size=4][font=Arial]Before we do much more Forth arithmetic, let’s exercise our brains with some infix-to-postfix and postfix-to-infix conversions.  Remember that infix notation is the same as algebraic notation and postfix is the same as RPN.  Many of these ex

Lee Stewart

Lee Stewart

 

Lesson 2: More fbForth 2.0 Fundamentals

[font=Arial][size=4]This lesson will discuss more of the details of RAM organization, working with the stack and some minimal Forth programming.[/size][/font] [font=Arial][size=4] [/size][/font] [size=4][font=Arial]The 32 KiB expansion RAM on the TI-99/4A is organized as follows in [/font][font=Georgia][b]fbForth 2.0[/b][/font][font=Arial]:  The 8 KiB lower RAM (2000h – 3FFFh) contains four [/font][font=Georgia][b]fbForth[/b][/font][font=Arial] block buffers, low-level Assembly Language suppor

Lee Stewart

Lee Stewart

 

Lesson 1: Getting to know fbForth 2.0

[font=arial]This is the first of several tutorials to help those new to Forth, [font=georgia][b]fbForth 2.0[/b][/font] in particular, to understand the language and its programming environment, as well as to gain some facility with it.  [font=georgia][size=4][b]fbForth [/b][/size][/font]is based on TI Forth, which was derived mostly from FIG-Forth with some influence from Forth-79.  There are more recent Forth standards; but, compatibility with TI Forth was the prime concern. [/font]   [font=a

Lee Stewart

Lee Stewart

×
×
  • Create New...