permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit c0402a6266956489f1a620b06df76ea9d9d20620
parent 32fd658db1803101a126006f68612ab0d2eb363d
Author: neau <neau@web>
Date:   Wed, 22 Jun 2022 16:47:50 +0200

empty web commit

Diffstat:
MCARDIAC.mdwn | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/CARDIAC.mdwn b/CARDIAC.mdwn @@ -5,14 +5,14 @@ The kit consists of an instruction manual and a [[paper computer]]. The computer operates in base 10 and has 100 memory cells which can hold signed numbers from 0 to ±999. It has an instruction set of 10 instructions which allows CARDIAC to add, subtract, test, shift, input, output and jump. ``` -INP Input take a number from the input card and put it in a memory cell. -CLA Clear and add clear the accumulator and add the contents of a memory cell to the accumulator. -ADD Add add the contents of a memory cell to the accumulator. -TAC Test accumulator contents performs a sign test on the contents of the accumulator; if minus, jump to a specified memory cell. -SFT Shift shifts the accumulator x places left, then y places right, where x is the upper address digit and y is the lower. -OUT Output take a number from the specified memory cell and write it on the output card. -STO Store copy the contents of the accumulator into a specified memory cell. -SUB Subtract subtract the contents of a specified memory cell from the accumulator. -JMP Jump jump to a specified memory cell. The current cell number is written in cell 99. This allows for one level of subroutines by having the return be the instruction at cell 99 (which had '8' hardcoded as the first digit. -HRS Halt and reset move bug to the specified cell, then stop program execution. +INP(Input): take a number from the input card and put it in a memory cell. +CLA(Clear&Add): clear the accumulator and add the contents of a memory cell to the accumulator. +ADD(Add): add the contents of a memory cell to the accumulator. +TAC(Test accumulator): performs a sign test on the contents of the accumulator; if minus, jump to a specified memory cell. +SFT(Shift): shifts the accumulator x places left, then y places right, where x is the upper address digit and y is the lower. +OUT(Output): take a number from the specified memory cell and write it on the output card. +STO(Store): copy the contents of the accumulator into a specified memory cell. +SUB(Subtract): subtract the contents of a specified memory cell from the accumulator. +JMP(Jump): jump to a specified memory cell. +HRS(Halt&reset): move bug to the specified cell, then stop program execution. ```