Skip to content

Inconsistency in sim_card.[ch] #503

@bsdphk

Description

@bsdphk

I'm trying to decide on a preservation format for punched cards in datamuseum.dk, and sim_card seems to be the only place anybody has given it any thought.

Of the four supported formats, only two a general (ie: can store any hole combination) and surveying bitsavers, the "Binary Card format" wins 360+ to 8 over the SCN format.

However, sim_card.c and sim_card.h do not agree about the format.

sim_card.c says:

    Binary Card format:
            Each record 160 characters.
            First characters 6789----
            Second character 21012345
                             111
            Top 4 bits of second character are 0.
            It is unlikely that any other format could
            look like this.

sim_card.h says:

    Binary Card format:
            Each record 160 characters.
            First character   21012345
                              111
            Second characters 6789----
            Top 4 bits of second character are 0.
            It is unlikely that ascii text or BCD format
            text could produce similar profile.

Note that they disagree about the order of the two characters and that the "Top 4 bits..." line makes no sense in either of them.

I have surveyed our local mirror of bitsavers and there are 360+ files which conform to the sim_card.c description and no files which conform to the sim_card.h description.

I have no idea if the files on Bitsavers work with Open-SIMH, but I assume the do ?

If they do, can I suggest one of you change the description in both of the files to something like:

    Binary Card format:
            Each record 160 bytes, two for each column:
                    |--------+--------|
                    |        |111     |
                    |6789zzzz|21012345|
                    |--------+--------|
            z = This bit is always zero.
            The ".crd" filename extension is strongly
            recommended for this format.

Thanks in advance,

Poul-Henning

(Digital preservation volunteer in Datamuseum.dk)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions