Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

1971, TOPS-10 BASIC (BASIC-10) and BBCX.

The latter was a pseudo-assembler, actually written in BASIC (by my teacher), as a part of the then experimental curriculum for the first computer science national certificate (CSE) to be taught in UK schools. I think the name reflected the idea that the course was going to be backed by a series of BBC "Programmes for Schools" radio broadcasts, but I don't recall ever hearing any of them.

It simulated a processor that had 1 8-bit accumulator register, 1 flags register, a program counter and 32767 memory addresses. It had a fairly limited set of instructions:

  • GET n -- load the accumulator with the value stored in memory location n (or a constant).
  • PUT n -- store the value from the accumulator to memory location n (or a constant).
  • ADD n -- Add the value from m.l. n (or a constant) to the accumulator.
  • TST n -- Set the flags to reflect the result as if n (constant or memory) had been subtracted from the accumulator.
  • JMP n -- Set the program counter to n.
  • CALL n -- call the subroutine located at address n.
  • ... etc.

It was a PIA to program, but very instructional. It certainly achieved it's aim of giving you a very good understanding of what was going on at the machine level. My first "big project" was to implement integer square root using the Newton method. It took me 3 weeks, though most of that was spent waiting for the twice weekly turnaround of coding sheets.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re: I started with...: by BrowserUk
in thread I started with...: by davido

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found