\ Temporary string \ Copyright (C) 2000 Alex Malyshev (alexript@mail.ru) \ This is free software; you can redistribute it and/or \ modify it under the terms of the GNU General Public License \ as published by the Free Software Foundation; either version 2 \ of the License, or (at your option) any later version. \ This program is distributed in the hope that it will be useful, \ but WITHOUT ANY WARRANTY; without even the implied warranty of \ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \ GNU General Public License for more details. \ You should have received a copy of the GNU General Public License \ along with this program; if not, write to the Free Software \ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. uses StartUp CREATE STR_TEMP_BUFFER 256 ALLOT : ts! ( c_add c_u -- ) STR_TEMP_BUFFER 256 0 FILL DUP 255 > IF DROP 255 THEN 2DUP STR_TEMP_BUFFER 1+ SWAP CMOVE STR_TEMP_BUFFER C! DROP ; : ts@ ( -- c_add c_u ) STR_TEMP_BUFFER COUNT ; : ts+! ( c_add c_u -- ) ts@ + 1+ SWAP DUP >R CMOVE STR_TEMP_BUFFER DUP C@ 1+ R> + SWAP C! ;
Make your own free website on Tripod.com