REXCPM
Updated January 10, 2021
NEWS
Version 2 firmware is now available! See the Software section below for details. Version 2 offers the following improvements:
- First, and most importantly, a serious bug that impacted stability is addressed in Version 2
- Version 2 also includes some new features:
- integrated VT100 video driver support (for M100/T102 only) see --> REX# / REXCPM Integrated VT100 driver
- CNTL-A to start REX Manager quickly from Menu
Overview
What is REXCPM?
REXCPM is an add-on memory card that plugs into the Option ROM socket in a supported laptop, augmenting significantly the amount of memory in the laptop as well as what that memory can be used for. REXCPM changes the way the laptop memory works:
* REXCPM provides up to 4MB of battery backed SRAM to the laptop. * Like REX, REXCPM puts bank switched memory into the OPTION ROM memory bank (1x32k bank) * In addition, REXCPM disables (while installed) the internal installed RAM, and replaces it with bank switched memory (2x16k banks)
Why?
CP/M. The main goal of REXCPM is to enable support for Philip Avery's port of CP/M 2.2 onto the M100 hardware. CP/M requires the full 64k address space to be RAM in order to operate, and so a RAM based capability is needed.
RAMdisk. CP/M is a disk based operating system. REXCPM, via the 3 bank-switched memory regions, is able to transform the majority of the SRAM resource into a RAM based, battery backed, ultra fast disk.
...and of course, all of the classic capabilities of REX can be supported using SRAM as well! So REXCPM is really all of the best aspects of REX, combined now with a custom, supported CP/M implementation, opening the door to a wide range of new applications!
Main Features and Functions of REXCPM
REXCPM (via RXCMGR software) enables several key capabilities for the Model T user.
- Option ROMs: Applications for Model T laptops were originally distributed as Option ROMs. These ROM images may be loaded into flash blocks, and then quickly switched/activated for use by REX Manager.
- RAM Images: Users can quickly backup or restore the current working RAM of the laptop into one of the 32k flash blocks. This provides a great way to store data, programs, or quickly recover from a cold boot situation.
- Quick Menu: the laptop main menu now has some custom keystrokes that speed up REX# usage.
- Active OPTROM display: the main menu also shows the name of the installed option ROM.
- Integrated VT100 external video driver support
- Additional nice things: REX Manager fixes the Y2K date display problem
Model T variants supported by REXCPM
- TRS-80 Model 100
- Tandy 102
Notes ===== Model 100: * In Europe and UK, and probably elsewhere, there are newer versions of M100 that have different boards. * Model numbers are 26-3801B and 26-3802B. * REXCPM does not function correctly in these models, due to the significantly different main ROM.
Links
REX Products ordering information
Hack to enable TTL serial data on the BCR port
Adapt the NSC800 CPU into the M100
The REX functionality included with REXCPM is aligned with REX#. Please visit this page for infomation on using REX#.
Status
* REXCPM is now generally available, and can be ordered subject to availability. * Hardware design and test is complete. * Inventory status will be kept up to date at the Ordering page.
Hardware Installation
Installation information for Model 100 here ----> M100 install
Installation information for Tandy 102 here ----> T102 install
Quick Start
So, you have just received your REXCPM and want to get going.
AS SHIPPED REXCPM CONTAINS NO SOFTWARE!!!! You must INITIALIZE your REXCPM to get started!
IMPORTANT: CALL 63012 will not work prior to REXCPM being initialized with RXCINI!
Here's what you need to do:
0. Read this entire page! There is information further in the page that you need to know to be able to initialize the device, and get started 00. AFTER going through the initialization procedure outlined below and the main REX software is loaded onto your REXCPM, it will be able to be used just like REX. You can review the information at the REX Wiki page for general information about REX use. But don't jump ahead just yet!
1. Install your REXCPM. Links to information about installation in M100 and T102 is at this page, below. 2. Initialize your REXCPM by running RXCINI.DO. This lets you load the RXCMGR application and initialize the directory. Unlike REX, REXCPM is based on RAM and cannot be shipped pre-programmed. The user must install the RXCMGR application, which is a binary file which must be loaded into a specific memory block in the SRAM. Additionally, the RXCMGR application needs a directory, to track what ROM images are stored in REX. Please scroll down and read about how to use RXCINI.DO. Software is available below. 3. Now you are ready to use REXCPM and RXCMGR. You can use it just like a REX. Create ram backups, load option ROMs etc.
Once initialization is complete, you can access RXCMGR.
Power cycle the laptop to ensure that REXCPM hardware is in the default state. In BASIC, type CALL 63012 This should start RXCMGR, and should install RXCMGR in the laptop directory.
Use with M100CP/M
REX operation and CP/M operation are independent. To install CP/M, follow the instructions on the M100CP/M page. The link to Philip's M100CP/M page is near the top of this page. Once CP/M is running, REX provides a quick mechanism to "jump" into it.
REX Quick Menu function has been expanded to include a new command. CNTL-C from MENU immediately transfers control to CP/M.
Recommended TPDD Client
Unfortunately it is difficult to guarantee that REX# works under all possible conditions with all possible combinations of TPDD client, cabling options, real serial vs USB, bluetooth etc.
What I use is as follows, and I recommend it as it 100% reliable for me.
* PC (Linux (I use Ubuntu 16.04) or Windows (I use 10)) * Real RS-232 serial port support * Laddie Alpha as the TPDD client * Null modem RS-232 cable
Use with MVT100 external Video
Currently the REXCPM "ROM" software is not compatible with the VT100 driver for M100. I am working on integrating this function, but for now they conflict because they both try to use the CHGET hook.
It is possible to use use MVT100 with REXCPM by un-installing the REX hook (CNTL-X at MENU). After REX is inoperative, the VT100 driver can be loaded. But since there is no way to remove the VT100 software once installed, I would suggest caution.
As soon as I have integrated the VT100 driver into REXCPM, I will post an update.
Documentation
The following information applies to REXCPM as well as REX#.
REX Manager User Guide for REXsharp
Technical Information
Work in progress!!!
Use with MVT100 external Video
Derived from the TRS-80 Disk Video Interface software (aka Disk Basic), both REX# and REXCPM include support now for the "integrated VT100 Driver". This is provided in V2 software, for M100/T102.
see --> REX# / REXCPM Integrated VT100 driver
Software
The last built of the original V1 release of REXCPM is build 43, and does not include the VT100 driver.
Current REXCPM software is V2, and includes the VT100 driver.
I recommend that all users upgrade to V2 software.
You must use the correct utilities to work with each version. This table provides guidance.
Software | REXCPM V1 | REXCPM V2 | Note |
REXCPM "ROM" | RXC_11.BR build 43 | RXC_12.BR build 10 | recommend update to V2 |
RXCUPD | - | Version 1 | use RXCUPD to update REXCPM V1 to V2 |
RXCINI | Version 2 | Version 3 | use the correct utility depending on REXCPM version |
RXCTST | Version 2 | Version 3 | use the correct utility depending on REXCPM version |
RXCUTL | Version 2 | Version 2 | RXCUTL is common for both versions of REXCPM |
Please use the correct utility depending on the REXCPM version.
To simplify obtaining the correct software, you can get them all as a single bundle:
REXCPM software and utilities bundle | Build | Status | File |
Version 2 | 10 | initial release of V2 | REXCPMV2_b10.ZIP |
Version 1 | 43 | last V1, bug fix | REXCPMV1_b43.ZIP |
"The ROM" RXC_1x.BR
As shipped, REXCPM is a blank piece of SRAM. In order to get rolling you need to load in the REXCPM "ROM" application. Use RXCINI to load the software, and prepare it for first use. If you currently have a working REXCPM, then use RXCUPD to install this software.
Notes: ====== Version 2: * build 10 - initial release including VT100 driver support Version 1: * build 43 includes a fix to a bug that corrupts the M100 directory on exit from CP/M * build 43 also includes Date/Time/Sort functionality
Note: REXCPM "ROM" software is based on classic REX with several differences. - 16 32k Blocks are available for use by the REXCPM "ROM" - the remaining SRAM is dedicated to CP/M use - the software has some simplifications - SRAM based operation means some low level changes to how REX works Please communicate any bug reports.
Initialization of a new REXCPM - RXCINI
RXCINI is a tool for installing software and/or creating a new directory in REXCPM.
RXCINI * use for installing software in REXCPM * use for erasing and creating a new (blank) directory in REXCPM
Since REXCPM is based on SRAM, and there is no on-board battery (only a large 1000uF capacitor), by the time you receive your REX the memory contents will be blank. So, you have to load REXCPM with the REXCPM application and any option ROMs you want to use.
Of course as soon as you install REXCPM, the M100 NiCd memory battery + the 4xAA batteries provide ample battery backup.
Version Notes: * use Version 3 for REXCPM V2 software * use Version 2 for REXCPM V1 software
Note: * RXCINI has embedded machine code which is now encoded as ASCII characters supporting 7 bit transfer * It also loads much more quickly, and includes checksum verification
Note: * If you get the message "CAN'T RUN" ---> please remove the REX hook (CNTL-X or F7) ---> power cycle ---> and try again
Instructions ============ 1. Make sure REXCPM is in default state, meaning a. RXCMGR is not running (use CNTL-X to remove hooks, or F7 from RXCMGR) b. Power cycle once, to ensure the default memory blocks are selected c. Optionally, cold-rebooting the laptop after a power cycle ensures a clean state. 2. Load RXCINI.DO via serial transfer, or TPDD transfer. It is now 7 bit ASCII. RXCINI.DO contains HEX ASCII encoded machine language, for more reliable transfer. 3. RUN RXCINI.DO in BASIC. RXCINI.DO allows you to do either or both of two processes: a. You can choose to LOAD a REXCPM application (28kB file) b. You can choose to INITIALIZE (reset to blank) the REX directory, which stores ROM image names. You can guess that initializing the directory removes any existing directory entries. The REXCPM application EXCLUDES the directory, so you must initialize the directory if you are starting from scratch and there is no existing directory (or stored images!). 4. Configure RXCINI.DO to do the following: a. indicate YES to "Load REX code:" b. indicate YES to "Init REX dir :" c. execute these choices 5. The loader will load up the machine language routine, and begin to execute 6. To LOAD a fresh REXCPM application, RXCINI.DO accesses a remote TPDD device to get the binary 28k file. RXCINI.DO contains it's own TPDD access routines, and does not need a DOS. a. Ensure a TPDD device is ready to go with the source file as needed. b. Supply the correct file name (6 characters, no extension, case sensitive) File extension is automatically set to .BR 7. Let the program run When complete, REXCPM should have a fresh "ROM" load for REXCPM, and a freshly initialized directory.
To install RXCMGR: --->Power off. --->Power on. --->From BASIC, ---> CALL 63012 You should see RXCMGR as a MENU entry. Selecting that will start RXCMGR software.
Note: ===== If you see an error message - "CAN'T RUN", this means that REXCPM is not in the default state. See instruction #1 above!
Upgrading the REXCPM Application
RXCINI.DO (posted above) is also used to do software upgrades on REXCPM.
NOTE: ===== To do an upgrade, only load REX code. Do not initialize the directory!
Instructions ============ 1. Make sure REXCPM is in default state, meaning a. RXCMGR is not running (use CNTL-X to remove hooks, or F7 from RXCMGR) b. Power cycle once, to ensure the default memory blocks are selected c. Optionally, cold-rebooting the laptop after a power cycle ensures a clean state. 2. Load RXCINI.DO via serial transfer, or TPDD transfer. It is now 7 bit ASCII. RXCINI.DO contains HEX ASCII encoded machine language, for more reliable transfer. 3. RUN RXCINI.DO in BASIC. RXCINI.DO allows you to do either or both of two processes: a. You can choose to LOAD a REXCPM application (28kB file) b. You can choose to INITIALIZE (reset to blank) the REX directory, which stores ROM image names. You can guess that initializing the directory removes any existing directory entries. The REXCPM application EXCLUDES the directory, so you must initialize the directory if you are starting from scratch and there is no existing directory (or stored images!). 4. Configure RXCINI.DO to do the following: a. indicate YES to "Load REX code:" b. indicate NO to "Init REX dir :" c. execute these choices 5. The loader will load up the machine language routine, and begin to execute 6. To LOAD a fresh REXCPM application, RXCINI.DO accesses a remote TPDD device to get the binary 28k file. RXCINI.DO contains it's own TPDD access routines, and does not need a DOS. a. Ensure a TPDD device is ready to go with the source file as needed. b. Supply the correct file name (6 characters, no extension, case sensitive) File extension is automatically set to .BR 7. Let the program run When complete, REXCPM should have a fresh "ROM" load for REXCPM, and a freshly initialized directory.
To install RXCMGR: --->Power off. --->Power on. --->From BASIC, ---> CALL 63012 You should see RXCMGR as a MENU entry. Selecting that will start RXCMGR software.
Note: ===== If you see an error message - "CAN'T RUN", this means that REXCPM is not in the default state. See instruction #1 above!
Test your REXCPM Installation
A tool is available to test your REXCPM in the laptop after it is installed.
It will erase all your memory, so use this with caution please.
What the tool does, is it tests each block of SRAM to see if it works. You have some options in the tool.
Notes: ====== * Blocks are switched in and tested one at a time * Memory is tested from bottom address 8000h * To speed up the test you can reduce the address range, and/or skip bytes * You can select the stop address - either C000h (full) or 9000h (partial) * You can either test every byte, or skip to every 16th byte About Version 2 =============== * Faster loading, safer 7 bit HEX ASCII machine language encoding * If you get the message "CAN'T RUN" ---> please remove the REX hook (CNTL-X or F7) ---> power cycle ---> and try again
Instructions ============ 1. Make sure REXCPM is in default state, meaning a. RXCMGR is not running (use CNTL-X to remove hooks, or F7 from RXCMGR) b. Power cycle once, to ensure the default memory blocks are selected c. Optionally, cold-rebooting the laptop after a power cycle ensures a clean state. 2. Load RXCTST.DO via serial transfer, or TPDD transfer. It is 8 bit ASCII. If transferring via serial, use 8 bit mode, not 7 bit. RXCTST.DO contains encoded machine language. 3. RUN RXCTST.DO in BASIC. 4. Make selections to configure the test. 5. The loader will load up the machine language routine, and begin to execute 6. Let the program run 7. It will report the size of RAM; 2MB = 128, 4MB = 256. It will report any errors or success.
Of course, you have just completely erased your REXCPM at this point. Use RXCINI to rebuild it.
Here's the software:
Utility | Version | File |
RXCTST | 2 | RXCTST.DO |
Backup and Restore
A tool is available for backing up or restoring REXCPM memory contents to TPDD.
Some of the REXCPM SRAM is dedicated to CP/M while other memory is dedicated to REX functionality.
Backup and restore of either the REX side or the CP/M side gives the user a means to create complete images of the memory over time, so if needed the machine can be brought back to the desired state.
Notes: ====== * Either a Backup or Restore process * REXCPM or CP/M memory regions REXCPM memory includes REXCPM ROM image + directory + 16 blocks Total of 17 32kB blocks. CP/M memory includes all of the CP/M disk space, including directory (but excluding CP/M OS) For 2MB, 40 32kB blocks. For 4MB, 104 32kB blocks. * Serial port speed - 19200 8N1 or 76800 8N1 "Large Packet" About Version 2: ================ * Faster loading, safer 7 bit HEX ASCII machine language encoding * If you get the message "CAN'T RUN" ---> please remove the REX hook (CNTL-X or F7) ---> power cycle ---> and try again
The tool uses the standard RS-232 port on the M100. Standard TPDD clients can operate at 19200 baud, but LaddieAlpha is capable of operation at 76800 baud, and also able to support large packet sizes, both of which help to speed up the process.
NOTE: LaddieAlpha with 76800 Large Block support is not generally available yet. Stay tuned.
Backup/Restore processes can take some time; use this table for guidance.
Process | Memory size | Duration | Duration |
REXCPM | either | 19200 | 5:20 min |
CP/M | 2MB | 19200 | 13 min |
CP/M | 4MB | 19200 | 33 min |
REXCPM | either | 76800 | 2:10 min |
CP/M | 2MB | 76800 | 5 min |
CP/M | 4MB | 76800 | 13:15 min |
Here's the software:
Utility | Version | File |
RXCUTL | 2 | RXCUTL.DO |
Instructions ============ 1. Make sure REXCPM is in default state, meaning a. RXCMGR is not running (use CNTL-X to remove hooks, or F7 from RXCMGR) b. Power cycle once, to ensure the default memory blocks are selected c. Optionally, cold-rebooting the laptop after a power cycle ensures a clean state. 2. load RXCUTL.DO into the M100 using a terminal program on PC (lots of ways to do this) It is 7 bit ASCII. RXCINI.DO contains HEX ASCII encoded machine language. 3. Enter BASIC and type RUN"RXCUTL.DO" 4. Select Process, REX or CP/M, and speed 5. The loader will load up the machine language routine, and begin to execute 6. Ensure that a TPDD client is attached to the serial port 7. For either process, supply 6 character case-sensitive name for the file. File extension is set to .BB 8. Once executed, RXCUTL will attempt to either write or read all required data to/from REXCPM SRAM.
Note: ===== If you see an error message - "CAN'T RUN", this means that REXCPM is not in the default state. See instruction #1 above!
Option ROM Images for Download
Validated OPTROM Images for M100/T102
Validated OPTROM Images for T200
Validated OPTROM Images for NEC
Acknowledgements
I would like to thank those that have contributed to the project:
Philip Avery - for his commitment to this project and for the port of CP/M to the M100
John Hogerhuis - for all his technical support, and for this Wiki resource
Kenneth Pettit - for VirtualT as this project would not have happened without it
Brian White - for his innovative PCB2MOLEX carrier design
FAQ
Q. I am having trouble loading RXC***.DO using serial transfer. It keeps crashing!
A. Please ensure you are transferring the file to the laptop in 8 bit mode. While the file is ASCII, it contains 8 bit ASCII because there is embedded machine language.
Q. Why do I need an adapter?
A. The adapter does 3 things: it disables the internal RAM, it sends 'RAM active' signal to REXCPM, and it provides battery power to REXCPM to keep the SRAM "alive".
Q. Is Tandy 102 a plug and play installation?
A. No. Model 100 is plug and play, but T102 requires soldering of a single wire. Details are available on this site for how to install on T102.
Q. Will REXCPM come out for T200?
A. There are currently no plans to support REXCPM in the T200 platform.
Q. Will REXCPM come out for NEC PC-8201?
A. This is being investigated.
Q. Are the REX memory images which REXCPM saves and restores to TPDD compatible with the images (.BY files) saved and restored by REX classic? Ie. will I be able to take a .BY file I saved from my REX classic, load it into REXCPM, switch to it, and have everything work properly? Or is this going to blow up in my face? :)
A. There were no changes in this functionality, so it should work. I have not tested this though. REXCPM is always 32k images, so your REXclassic image would also need to be 32k.
Q. Can I access the banking functionality of REXCPM via BASIC?
A. Yes. There are 3 banks: Option ROM 0000-7FFF, low RAM 8000-BFFF and high RAM C000-FFFF. All 3 are accessible but the only practical use case is for Option ROM since BASIC uses both RAM banks. The BASIC program would need to make use of a machine language routine to set the register value in REXCPM to the specific memory bank of interest. Then, to access the RAM you would need another machine language routine. Examples of such code can be made available at this wiki.