On Sep 17, 2014, at 12:00 PM, Brian wrote:
In case anyone is interested, I whipped up a little
CARDIAC
simulator as a JavaScript exercise last night. You can find
it at:
http://cs.drexel.edu/~bls96/museum/cardsim.html
If you were at VCFSE this past May, you may have seen a
short presentation I gave on the CARDIAC. If you're not
familiar with it, it was an educational tool developed at
Bell Labs back in the '60s to teach how a computer operated.
CARDIAC stands for CARDboard Illustrative Aid to Computation.
Enjoy,
BLS
This is fun!
Summation program:
00: 090 Read input into location 90
01: 190 Clear and add first addend into accumulator
02: 691 store first addend into running sum
LP 03: 712 Subtract 1 from current addend to get next added
04: 310 Test, branch to 10: if subtraction result < 0
05: 690 store current added to location 90
06: 291 Add running sum into accumulator
07: 691 store running sum back into location 91
08: 190 clear accumulator and place current addend
09: 803 branch to LP 03:
10: 591 Output running sum
11: 900 Reset and halt
12: 001 Constant #1 used for decrement
Uses locations 90 (input, decremented addend) and 91 (running sum), overwriting previous
contents
Input N
Output result is Summation (N)
Is that exercise somewhere in the instruction manual? I have not read that...
Brian, thank you!
- Mark