Skip to content

Commit

Permalink
toblock now written in Forth.
Browse files Browse the repository at this point in the history
  • Loading branch information
albert committed Apr 23, 2015
1 parent 8315572 commit d49f7e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion logforth.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13719,6 +13719,16 @@ New forth.lab:
Added {{ }} nested compile
Added a LOCAL compatible with tForth
Added a GET at the free STACK
For blocks.frt version 5.96.

2015 apr 15
Added a midi driver in forth.lab. midi.frt can play the song of
Jones Jonesforth with different voices.

2015 apr 23
Added INLING, a namespace to be added to the library.
Committed midi, number theoretical functions and above.
Version 5.97.

--------------------
*SET-SRC should contain a ref to SAVE
Expand Down Expand Up @@ -13792,7 +13802,6 @@ The library goes undocumented.
A very stupid comment line in the description of the memory
up till EM must be removed.


The registers are not properly described in the manual.
(Not using the names WOR HIP etc.
Dscovered that maybe POSTPONE should be used instead of COMMA.
Expand Down
6 changes: 5 additions & 1 deletion toblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ int main( int argc , char **argv )
if ( 0 == line%16 ) check_index(buffer);
line += 1;
count = strlen(buffer);
if ( CPL < count ) error("line too long");
if ( CPL < count )
{
fprintf(stderr, "%s\n", buffer );
error("line too long");
}
buffer[--count] = '\000'; /* Remove '\n' */
for(i=0; i<CPL-1; i++)
putchar(i<count?buffer[i]:' ');
Expand Down
2 changes: 2 additions & 0 deletions toblock.frt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\ $Id$
Burned down in behalf of toblk.frt

0 comments on commit d49f7e9

Please sign in to comment.