LisaList2

General Category => LisaList2 => Lisa Workshop => Topic started by: sigma7 on July 28, 2025, 04:21:12 am

Title: Portconfig Exec Script
Post by: sigma7 on July 28, 2025, 04:21:12 am
A script to configure Serial Port B with mostly the default values (9600 8N1, hardware handshake), but with a large buffer of 9000 bytes and without the automatic linefeed option.

Tested with 2MB RAM, I don't know if the ~8k buffer is viable with less RAM installed.

Usage:
Save the code below in a text file, eg. "portconfigB.text"

To execute it, from the main Workshop menu, type
r<portconfigb and return

You can save (a copy of) this (or any Exec script file) as CISTART.TEXT to have it run automatically when the Workshop starts up. I find this convenient when I am using a terminal for the console and have to reconfigure the serial port each time I reboot the Lisa.

Code: [Select]
EXEC
{ to configure RS232 port B for 8N1, 9600 baud, 9000 buffer, hardware handshake }
{ save a copy as CISTART.TEXT to run automatically at startup }
RUN 'portconfig.obj' INPUT
b019600
1129000
30
8900
00
0Y
ENDRUN
ENDEXEC

edit: Comment about available RAM