FORTHPAL Toolkit
Versión 1 · Peniel Romanelli
Descripción
This is a small toolkit for use with the HP-Pygmy Forth. It assumes that you have the HP-Pygmy Rel. 2 and are reasonably familiar with the Forth language. It's meant to make it easier to create Forth apps with the look and feel of the LX's built-in programs or those created using PAL.
Ficha técnica
- Fichero
forthpal.zip- Tamaño
- 11.7 KB
- Formato
- .zip
- Año
- 1999
- Alta en S.U.P.E.R.
- 1999-09-16
- Ficheros dentro
- 3
- Autor
- Peniel Romanelli
- Ruta
anonftp/pub/forthpal.zip
Cómo instalarlo
Qué enviar al palmtop ahorras 60.4 KB
No hace falta llevar al palmtop
FORTHPAL.DOW, FORTHPAL.TXT, FORTHPAL.SCR:
son manuales, código fuente o material de apoyo. Léelos aquí y ahórrate 60.4 KB en un disco de 1 MB.
Pasos
- Este paquete no trae ejecutables reconocibles. Descárgalo y mira su contenido: puede ser documentación, código fuente o material de apoyo.
Deducido del contenido del paquete y de las convenciones del 200LX. Se instala en A: a propósito: C: es un disco RAM y cada byte ahí resta memoria al sistema.
Instrucciones del autor
INSTALLATION AND SETUP
Just copy FORTHPAL.SCR and FORTHPAL.DOW to your directory with HP-Pygmy
Forth. FORTHPAL.DOW is the shadow block file with explanations of the
words in FORTHPAL.SCR
To use these together open FORTHPAL.SCR in a free even-numbered slot,
and FORTHPAL.DOW in the following odd-numbered one. e.g.
" FORTHPAL.SCR" 8 OPEN
" FORTHPAL.DOW" 9 OPEN
To switch between these use CTRL-A when in the editor.
The extensions nust be loaded before loading FORTHPAL. Graphic scroll
from the extensions (Block 3011) must also be loaded. It's not loaded
by default.
The load block assumes you installed FORTHPAL as unit 8 (starting at
block# 8000). Do 8001 LOAD to load the toolkit. If you install it in
a different unit #, you'll need to edit the load block. There's also
a useless demo/test of the tools called SAMPLE - and a simple Forth
source viewer that's faster than the editor, and could eventually be
the basis for a graphic mode editor (or maybe not...)
Files:
forthpal.txt This document
forthpal.scr Forth source block file
forthpal.dow The shadow block file
THE TOOLS
The tools are described here. There are many variables, arrays, and
support words not listed here. See the source and shadow blocks for
info...
PADDING ( n -) Sets interline padding (blank pixel lines between text
lines). Limited to 5 lines max - default = 0.
SETPOS ( x y -) Stores the coordinates (in pixels) in text position
variables.
G-TAB ( x -) Stores X-coordinate in a text position variable -
keeps existing Y coord.
G-AT ( r c - x y) Converts row/column coordinates to pixel coords.
Applies in the working area between the title bar and function
key labels. (Pixel coords 0,13 to 639,188). Also stores x,y
…
Extracto literal de FORTHPAL.TXT, tal cual venía en el paquete.
Contenido del paquete
Enviar a mi palmtop
El palmtop tiene que quedar esperando antes de pulsar el botón, o la transferencia fallará. Es él quien avisa de que está listo, no al revés.
En el palmtop
- Conecta el cable serie entre el palmtop y el ordenador.
- Abre Data Comm y ve a Menu → Connect → Settings. Ajusta: 9600 baudios, 8 bits de datos, paridad None, 1 bit de parada.
- Vuelve al menú y entra en Menu → File → Receive, con el protocolo Zmodem. El palmtop se queda esperando: déjalo así.
En el ordenador
- Usa Chrome (o Edge / Opera). Firefox y Safari no pueden abrir el puerto serie, y ningún navegador móvil tampoco.
- Averigua cuál es tu puerto: si no lo tienes claro, despliega la ayuda de aquí abajo.
- Pulsa el botón y selecciónalo en la ventana que abre Chrome.
¿Cómo sé cuál es mi puerto?
Linux — tu adaptador USB-serie será /dev/ttyUSB0 o /dev/ttyACM0. Los /dev/ttyS0…ttyS31 son puertos heredados de la placa base: el núcleo los lista aunque no exista ninguno, así que casi nunca son el tuyo. Para salir de dudas:
ls -l /dev/serial/by-id/
Sale el fabricante y el modelo, y a qué ttyUSB* apunta. Si no aparece nada, desenchufa y vuelve a enchufar el cable y mira dmesg | tail: verás una línea del estilo «ch341-uart converter now attached to ttyUSB0».
Permisos: en Debian y derivados tu usuario debe estar en el grupo dialout o el puerto no se abrirá. Compruébalo con groups, y si falta:
sudo usermod -aG dialout $USER
Hay que cerrar la sesión y volver a entrar para que surta efecto.
Windows — Administrador de dispositivos → Puertos (COM y LPT). Tu adaptador aparece como COM3, COM4… Si aparece con un triángulo amarillo, te falta el driver del chip (FTDI, Prolific o CH340 según el cable).
macOS — ls /dev/cu.*; tu adaptador será algo como /dev/cu.usbserial-A50285BI. Usa siempre el cu., no el tty..
El 200LX no lleva un conector serie estándar: necesitas el cable de conectividad de HP (el F1015A o un equivalente) y, salvo que tu ordenador tenga puerto serie de verdad, un adaptador USB-serie detrás.
Tu navegador no puede hablar con el puerto serie. El envío directo usa la Web Serial API, que solo existe en Chrome, Edge y Opera de escritorio — no en Firefox, Safari ni en ningún navegador móvil.
Descarga el fichero con el botón de arriba y pásalo al palmtop con tu método habitual.