Question: Preface The basics of Computing Cong to learn how a computer does simple arithmatic, such as mutipilication and division , Restrictions and Rules load, add,
Preface
The basics of Computing
Cong to learn how a computer does simple arithmatic, such as mutipilication and division
Restrictions and Rules
load, add, sub, rol, ror, prt
arname loadvalue Will load the value into a bit integer array
var var var Will perform subtraction: var var and store the result in var and clear the carry bit if needed
rol Will rotate all bits to the left by one position. The carry bit will move into bit and bit will move into the carry bit ror Will rotate all bits to the right by one position. The carry bit will move into bit and bit will move into the carry
carry # The carry bit prgcnt # instruction counter dividebyzero #flag to mark division by zero. The following commmands oerte on the com
Clears the carry bit set the carry bit
var do stuff..
if not var:
for in rangel computer.machineperc
var fmt
fmt:
print
print
prin
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
