Code Monkey home page Code Monkey logo

8bc's Introduction

8bc -- B compiler for the PDP-8

8bc is a B compiler for the PDP-8.  It compiles standard B for the
PDP-8/E or later computers with or without an EAE.  Programs are
compiled to BIN formatted tapes with an entry point at 0200.

To run programs compiled with 8bc, use the PDP-8 emulator supplied
by the SIMH project.  For example, to compile and run hello.b from
the examples, first compile hello.b into hello.bin:

    $ 8bc hello.b

Then run SIMH: load hello.bin and jump to address 0200 to start the
program.

    $ pdp8

    PDP-8 simulator V4.0-0 Current        git commit id: 6554e0a4
    sim> l hello.bin
    sim> g 200
    HELLO, WORLD
    HALT instruction, PC: 00321 (JMP 200)
    sim> exit
    Goodbye


To build 8bc, first edit Makefile according to your system's needs.
Typically, nothing needs to be adjusted.  You need the following
prerequisites:

 * an ANSI C compiler
 * lex (e.g. flex) with libl.a
 * yacc (e.g. bison) with liby.a
 * groff

Then type

    make all

to compile 8bc and

    make install

to install the distribution.  You may need to manually update the manual
database afterwards.

If you are a maintainer, read Makefile carefully for instructions.
Please mark SIMH as an optional dependency/recommended package if your
distribution ships it.  If you perform nontrivial modifications to the
codebase, please have the courtesy to change the version string in 8bc
such that it is clearly visible that the code has been modified and by
whom.

Please report bugs on github or by mail to [email protected].  Please do not
send patches without prior communication.  While I'm willing to fix any
bug you find, I prefer to write the patches myself.

(c) 2019 Robert Clausecker <[email protected]>

8bc's People

Contributors

clausecker avatar

Watchers

 avatar

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.