Procedure to customize HP Paper Tape BASIC

This procedure will be carried out in the SimH hp2100 emulator. HP Paper Tape BASIC needs to be configured for your console device, paper tape reader and (optionally) your paper tape punch. Once you've generated the configured NEWBASIC.ABS file, you can punch that with whichever physical paper tape punch you happen to have, on your favorite OS.

  1. Grab the HPBASIC.ABS and PREPARE.ABS files, which are in Absolute Binary format.
  2. Set up a config file for SimH, to match the hardware setup on your system. My 2108A config is:
        ; Simulation configuration for 2108A paper tape system
        ; Configure CPU as HP 2108A (1000-m) with 32 pages of memory
        set CPU 1000-M,32K
        set CPU ROMS=PTR;DPC
        set CPU idle
        ; Setup for running paper tape BASIC
        set LPT disabled
        set TBG disabled
        set DPD disabled
        set DPC disabled
        set DQD disabled
        set DQC disabled
        set DRD disabled
        set DRC disabled
        set MSD disabled
        set MSC disabled
        set DS disabled
        set BACI disabled
        set MPX disabled
        set PIF disabled
        set MUXL disabled
        set MUX disabled
        set MUXC disabled
        set DA disabled
    
        set TTY SC=15,enabled	; 12531D on SC 15, 2645A terminal
        set PTR SC=16,enabled	; 12597A on SC 16, 2748B reader
        set PTP SC=17,enabled	; 12597A on SC 17, virtual punch
    
  3. run the hp2100 emulator and enter the Select Codes (SC) for your console, paper tape reader and paper tape punch devices:
hp2100 2108A.sim
sim> ATTACH PTR PREPARE.ABS
sim> BOOT PTR

    Programmed halt, T: 102077 (HLT 77), P: 77712 (JMP 77700)

sim> ATTACH PTR HPBASIC.ABS
sim> BOOT PTR

    Programmed halt, T: 102077 (HLT 77), P: 77712 (JMP 77700)

sim> DEPOSIT S 15	(15 is the SC of your console device)
sim> DEPOSIT P 2
sim> ATTACH -N PTP NEWBASIC.ABS
sim> RUN

    PHOTO READER I/O ADDRESS? 16
    PUNCH I/O ADDRESS? 17
    SYSTEM DUMP I/O ADDRESS? 17
    CORE SIZE? 32

    Programmed halt, T: 102077 (HLT 77), P: 16562 (JMP 16547)

sim> DETACH PTP

Running HP BASIC in SimH:
--------------------------------------

hp2100 2108A.sim
sim> ATTACH PTR NEWBASIC.ABS
sim> BOOT PTR

    Programmed halt, T: 102077 (HLT 77), P: 77712 (JMP 77700)

sim> RUN 100

    READY

CTRL-E

scp> ATTACH PTR LANDER.BAS
    PTAPE
    LIST
    RUN

Last updated on Monday, June 19, 2023