Calc-U 1600Pocket computer emulator Play in browser

Calc-U-1600 Help 4 Media Memory modules and floppy disks

Chapter 4 · Media

Memory modules and floppy disks

Templates, instances, Name & Save, inserting and ejecting, the save folder and files that cannot be read are the family's; the shared part of this chapter describes them. This part covers the media of Calc-U-1600: the memory modules, the CE-1600F's floppy disks, and which files the product opens. Cassettes are in Loading a BASIC program; a folder of your computer as a drive is in The host drive.

The slot pickers

Each memory slot has a picker in the control bar. The PC-1500 and PC-1500A have one slot; the PC-1600 has two. A picker lists, from the top:

The PC-1600 Slot 1 picker

Choosing an entry plugs the module in at once, and the computer goes through a power cycle, as when a module is plugged into the real one. The memory is kept; the ROM then finds the changed memory and asks you to set BASIC up again (NEW0? :CHECK), as on the real computer. A module change leaves the other slot and the disk alone.

Module Models What it is Battery-backed
CE-151 PC-1500/1500A, PC-1600 Slot 1 4 KB RAM no
CE-155 PC-1500/1500A, PC-1600 Slot 1 8 KB RAM no
CE-161 PC-1500/1500A, PC-1600 Slot 1 or 2 16 KB RAM with a write-protect switch yes
CE-1638 PC-1500/1500A, PC-1600 128 KB banked RAM (hobbyist module) yes
CE-163F PC-1500/1500A, PC-1600 128 KB RAM and 128 KB flash (hobbyist module) yes
CE-502B PC-1500/1500A "Statistics" program module (ROM) –
CE-1600M PC-1600 Slot 1 or 2 32 KB RAM yes
CE-1601M PC-1600 Slot 2 64 KB banked RAM yes
256K custom PC-1600 Slot 2 256 KB banked RAM of no particular make, initialised: 32 KB expansion memory and the RAM disk S2: (220,160 bytes free) yes
superRAM r4 PC-1600 Slot 2 1 MB banked RAM by spellbound, blank: it is initialised with SRAMINIT.BIN, which comes with the module, not with Calc-U-1600 (its insert notice says so when you plug it in) yes

A module without a battery (the CE-151, the CE-155) loses its contents at a Cold boot; a battery-backed one keeps them (What differs by model). Modules of your own design are module definitions.

Program modules on the PC-1500

A program module holds a BASIC program and its reserve keys in memory the computer can't write: Sharp's ROM modules such as the CE-502B, or a CE-161 saved with Write-protect (below). At power-on the PC-1500's ROM looks for one in &0000–&6FFF: a page that can't be written and starts with the byte &55 (a module header). How the memory is used then depends on what it finds:

PC-1500 with … Reserve keys BASIC after NEW 0 Variables MEM (empty)
no module &4008–&40C4 &40C5 down from &47FF 1850
a RAM module (CE-161 not protected) &0008–&00C4 &00C5 down from &47FF 18234
a program module (CE-502B, protected CE-161) in the module, &0008–&00C4 &4000 down from &47FF 2047

On the PC-1500A the built-in RAM ends at &57FF, so every row has 4 KB more and the variables start at &57FF (MEM 5946 without a module, 6143 next to a program module).

With a program module:

How the ROM recognizes a module, the header and the CE-161's POKE are in the CE-161 program module notes.

The floppy disk (PC-1600)

The CE-1600F floppy drive comes with the CE-1600P: plugging in the plotter plugs in the drive, and unplugging it takes the disk out. Its row in the control bar has:

The disk picker

Switching the CE-1600P's ROM keeps the disk in the drive, the same side up.

Naming and saving

The battery-backed modules and the disks get Name & Save; the family's rules for it, autosave and the save folder are in the shared part. For Calc-U-1600:

Name & Save

Write-protect (CE-161)

For a module with a write-protect switch, the Name & Save dialog has a Write-protect box. Ticked, the instance is saved with the switch set to read-only, and it stays that way: the computer can read it but no longer write to it. Saving it so goes through a power cycle, as plugging in a module does. On the PC-1500 this turns a prepared CE-161 into a program module, as in its manual: NEW 256, enter the program, run the manual's fill program, POKE 0,85,0,1,0,0,0,0,255, then Name & Save with the box ticked, and NEW 0.

Opening a file

Drop a file on the window, or open it with File ▸ Load Preset…, and it is opened as what it is (the family's rules for opening files are in the shared part). A preset and a module, disk or cassette file are told by their names; for the rest, what's inside the file decides:

The file holds Opened as if by
a preset (.pc1500, .pc1500a, .pc1600, or a line starting with model:) File ▸ Load Preset… (Presets)
a module (.module.yaml), a floppy disk (.floppy.yaml) or a cassette (.cassette.yaml) put into its place from where it lies and saved back there; a module only when it is clear which slot it goes into (the PC-1500's one slot, or a module that fits only one), a disk only while the CE-1600F is there
a BASIC listing, or tokenized BASIC (.bbin) File ▸ Load BASIC Program… (BASIC programs)
machine code with a CE-158 or PC-1600 header File ▸ Load Machine Code… (Machine code)
machine code without a header, in a .bin file File ▸ Load Machine Code…, which asks for the address
a cassette's sound file (.wav) of a PC-1500 (CE-150) or PC-1600 (CE-1600P) by the file on the tape, as above; with several files you choose one

Anything else, and a file over 1 MiB, is refused with a notice. A file loads into the running computer, exactly like the menu item, so prepare the computer the same way first (NEW0 before a BASIC program, and so on). In the browser a module, disk or cassette file is imported into the saved media first.

On macOS you can also drop a file onto the Dock icon, or open it from the Finder with Open With ▸ Calc-U-1600. On macOS, Windows and Linux, double-clicking a preset (.pc1500, .pc1500a, .pc1600) opens it in Calc-U-1600.

Help built from Calc-U-1600-help.zip 0.9.1, the help of the Calc-U-1600 0.9.1 release.