Coder Social home page Coder Social logo

simtools's Issues

docs for mtdump need an update; won't handle P7B format files

The README.md says:
mtdump Dump the record structure of a SIMH, E11, TPC, or P7B

and:
simtools/extracters/mtdump/mtdump.txt

also talks about processing P7B files, but the code doesn't handle such files
or a -p option, at all. That needs to be fixed in the documentation.

Looking at mtdump.c, I can see that files in P7B format don't fit well in the code,
as I think all of the other formats use a header that gives the record length, but P7B
(aka Paul Pierce format) don't have any headers or trailers, just a stream of
bytes with 6-bit char codes, a parity bit, and a 'new record starting' bit, plus
a special byte value (0x8F) to signify a tape mark.

macro1.c should ignore parentheses in comments

According the MACRO-1 docs, constant syllables are defined by parentheses, but obviously this should not be the case if the parentheses appear inside a comment from / to end of line. It appears that macro1.c is not ignoring them, though.

I am trying to assemble the source for the famous MIT display hacks available here: http://bitsavers.trailing-edge.com/bits/DEC/pdp1/from_peter_samson/dpys5.mac

I get all kinds of confusing errors about undefined symbols and illegal expressions. Inspection of the listing output suggests that it is attempting to parse the comments.

When the parens are removed from the following comments, the source assembles cleanly:

line 6: / (uses TW)
line 15: / (uses no switches)
line 258: / (uses TW)

I'm attaching the errors and listing output.

I haven't yet studied the macro1 code long enough to understand how it works; if I have time, I will try to develop a patch and submit a pull request. I decided to go ahead and file the bug in the hopes that someone more familiar with the code than I will beat me to it.

License

Simtools is licensed for most files, but some of them (mainly Makefiles) are unlicensed.
It's a good idea to add a parent license. Something like:

  1. All our contributions are freely available for use, copying, distribution in their original and modified form, but without any warranty.
  2. All Makefiles and documentation files are licensed under the license describes in the source code of the program.
  3. Third party programs may be licensed in their own right, but section 2 applies to them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.