HP 21xx
Series
Single-User HP BASIC
Operation Examples
 

The following examples use SCOMM as a console-host.

Red text is operator action.

Specific presumed environment:

Alterations appropriate for one's target setup may of course be made, e.g a different serial-link speed or use of a 12531A interface.


Producing a Configured HPBASIC System Executable

Additional environment:

Actions:

The procedure:

STEP 2116 CONSOLE-HOST / OPERATOR
1. shell! scomm -d /dev/tty.usbSerial -s 2400 -b 82 -rdi8 -se off{RET}
2. Power-on
3. PRESET
4. SENSE: 017700
5. LOAD-ADDRESS
6. RUN
7. ..BBL runs {CTL-A}
8. SCOMM> sf pbs.abs{RET}
9. ..PBS executable loads ..file sends
10. ..CPU halts, T-REGISTER: 102011
11. LOAD-ADDRESS
12. RUN
13. ..BBL runs {CTL-A}
14. SCOMM> sf hpb.abs{RET}
15. ..HPBASIC executable loads ..file sends
16. ..CPU halts, T-REGISTER: 102011
17. SENSE: 02
18. LOAD-ADDRESS
19. SENSE: 011
20. RUN
21. ..PBS runs PHOTO READER I/O ADDRESS? {RET}
22. PUNCH I/O ADDRESS? {RET}
23. SYSTEM DUMP I/O ADDRESS? {RET}
24. CORE SIZE? {RET}
25. TURN ON TTY PUNCH, PRESS RUN
26. ..CPU halts, T-REGISTER: 102011 {CTL-A}
27. SCOMM> rf hpbsys.abs{RET}
28. RUN
29. ..HPBASIC system executable is output ..executable received in file
30. {CTL-A}
31. SCOMM> rf {RET}

If entering a channel address on the console-host, enter only the two digits of the address.


Loading & Running a Configured HPBASIC System Executable

Additional environment:

Actions:

The procedure:

STEP 2116 CONSOLE-HOST / OPERATOR
1. shell! scomm -d /dev/tty.usbSerial -s 2400 -b 82 -rdi8 -se off{RET}
2. Power-on
3. PRESET
4. SENSE: 017700
5. LOAD-ADDRESS
6. RUN
7. ..BBL runs {CTL-A}
8. SCOMM> sf hpbsys.abs{RET}
9. ..HPBASIC system executable loads ..file sends
10. ..CPU halts, T-REGISTER: 102011 {CTL-A}
11. SCOMM> rfi8{CTL-A}
12. SCOMM> rfnl{CTL-A}
13. SCOMM> sfnl cr{CTL-A}
14. SCOMM> sflow{RET}
15. SENSE: 0100
16. LOAD-ADDRESS
17. RUN
18. ..HPBASIC runs READY


Running a Pre-loaded HPBASIC System

Additional environment:

Actions:

The procedure:

STEP 2116 CONSOLE-HOST / OPERATOR
1. shell! scomm -d /dev/tty.usbSerial -s 2400 -b 82 -rdi8 -rfi8 -rfnl -se off -sfnl cr -sflow{RET}
2. Power-on
3. PRESET
4. SENSE: 0100
5. LOAD-ADDRESS
6. RUN
7. ..HPBASIC runs READY
8. {CTL-A}
9. SCOMM> sf aprogram.bas{RET}
10. ..BASIC program received ..program sent & echoed
11. ..ready for RUN, LIST, etc.
12. ..programming work
13. LIST
14. {CTL-A}
15. SCOMM> rf aprogram.bas{RET}
16. {RET}
17. ..BASIC program lists ..program received
17. READY
19. {CTL-A}
20. SCOMM> rf{RET}


  Memory Map | Operation Examples
HP BASIC
CTµL | 2116 | I/O Interfaces | Programming Ref | Software | 2116C Refurb
HP 21xx Series
bhilpert
2025 May