LisaList2

Advanced search  

News:

I've successfully built LOS from source!: https://lisalist2.com/index.php/topic,644.0.html

Pages: [1]   Go Down

Author Topic: Portconfig Exec Script  (Read 3911 times)

sigma7

  • Administrator
  • Hero Member
  • *****
  • Karma: +188/-1
  • Offline Offline
  • Posts: 649
  • Warning: Memory errors found. Verify comments.
Portconfig Exec Script
« 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
« Last Edit: July 28, 2025, 04:27:53 am by sigma7 »
Logged
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.
Pages: [1]   Go Up