News:

I've successfully built LOS from source!: https://lisalist2.com/index.php/topic,644.0.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.

bmwcyclist

#1
Am I assuming correctly that if you have to reset on reboot the settings are stored in RAM?


Using my LISA for writing blogs and other work projects and fun and games at home.
LISA 2/10, AST RAM board, ESProfile, FloppyEMU, reproduction LISA 1 mouse, BlueSCSI