News:

Want an XLerator? Please participate in the market research thread: https://lisalist2.com/index.php/topic,594.msg4180.html

Main Menu

Portconfig Exec Script

Started by sigma7, July 28, 2025, 04:21:12 AM

Previous topic - Next topic

sigma7

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.

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
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.