Questions tagged [mano-machine]

A theoretical computer described by M. Morris Mano in his textbook. Features a very limited instruction set, used for teaching.

The Mano machine is a computer theoretically described by M. Morris Mano. There's no commercial implementation, but some schools use it for teaching students the basics of systems design and assembly programming.

As a programming platform, it features a limited assembly language with 32 commands. There are two registers - 16-bit accumulator (AC) and 1-bit carry flag (E). There are two addressing modes - direct access and indirect access with address being taken from memory. Conditionals are implemented by comparing the accumulator to zero and opionally skipping the next command. The arithmetic capabilities are limited, too - there's no subtraction, no multiplication or division, no bitwise operations except NOT and rotation by one.

https://en.wikipedia.org/wiki/Mano_machine

4 questions
1
vote
3 answers

Difference between implied and immediate addressing mode?

Implied: operands are specified implicitly in the definition of instruction. Examples: CLA,CME,INP. It is mainly used for Zero-address (STACK-organized) and One-address (ACCUMULATOR-organized) instructions. Immediate: operand is specified in the…
0
votes
0 answers

Clearing the accumulator before loading values from a variable

I have been working on writing a program that does this: Suppose we have the following program: DF1 = A - B SUM = DF1 + C DF1 = 1 SUM = SUM + DF1 + C Write a (Mano) assembly program that does what the pseudo-code program does. Assume that…
zokiboi
  • 11
  • 1
  • 8
0
votes
1 answer

Address Symbol Table in Basic Computer

I can't understand how we get the Hexadecimal code of the labels in the address symbol table. [Program To subtract 2 numbers] ORG 100 LDA SUB CMA INC ADD MIN STA DIF HLT MIN, DEC 83 SUB, DEC -23 DIF, HEX 0 …
Rsaleh
  • 77
  • 1
  • 10
0
votes
2 answers

Division of two binary numbers

So here I am facing a problem.I have only 25 instructions in my instruction set.(no multiply,divide,subtract, increment instruction). now, I am trying to preform a binary division.My problem is, how can I know if the divisor is smaller then the…
joey rohan
  • 3,505
  • 5
  • 33
  • 70