Jump to content
TheBF

Camel99 Forth Information goes here

Recommended Posts

2 hours ago, TheBF said:

       EQ  UNTIL,        \ jump back if no carry flag set

 

<nit picking>

       Should not your comment be “\  jump back if no equal flag set”?

</nit picking>

 

...lee

Share this post


Link to post
Share on other sites
38 minutes ago, Lee Stewart said:

 

<nit picking>

       Should not your comment be “\  jump back if no equal flag set”?

</nit picking>

 

...lee

Yes.  Comment creep. :)

  • Like 1

Share this post


Link to post
Share on other sites

I thought I knew something about Forth but no...

 

I was reading comp.lang.forth and read that the ANS Forth word

WITHIN ( n lo hi -- ?)

 

can be used with the lo,hi arguments reversed to reverse the logic.

WITHIN ( n hi lo -- inverted-logic)  

I would never have tried this.

 

Good to know.

 

 

WITHINLOGIC.png

Share this post


Link to post
Share on other sites

Slowly making some progress with the DV80 file editor that uses Forth virtual memory blocks. Currently it's not the fastest in the world by any means but it does have some fun features.  I hated the fact that when typing in the EA editor the screen jumps to deal with the 80 column line length. So this one just slides to the left as you type. :)

And I didn't want to be restricted to blocks of 16 lines so this one now can scroll up and down freely like a normal text editor as well.

 

Currently it can hold 512 lines in a 64K swap file. Inserting lines will not be particularly fast but I want to get it working pretty solidly before going to something like a GAP format for dealing with inserts.

 

It wastes space in the virtual memory because the lines internally are 128 bytes each. This gives me some room to play with inserting into a line but I have not thought that through yet.

 

This is the "worst" form of the editor. The upgrade path is to replace the swap file with SAMS memory blocks since I have a card in my TI-99.

But the swap file method means it could work on a couple of floppy drives with reasonable performance. 

Currently 3K of file is held in low memory at any given time so editing a local buffer is RAM.

 

The video shows how it looks at the moment.

 

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...