Instructions:language of the Computer ¶
Keywords are InstructionSetArchitecture, Register, Memory, Address(,and...)
InstructionSetArchtecture(ISA) is an abstract interface between the hardware and the lowest-level sogtware. Also called simply architecture.
Registers are a limited number of special locations built directly in hardware. On major differnce between the variables of a programming language and registers is the limited number of registers, typically 32(64?) on current computers.
Memory is the storage area in which programs are kept when they are runngin and that contains the data needed by the running programs. Address is a value used to delineate the location of a specific data element within a memory array.
InstructionSetArchtecture(ISA) is an abstract interface between the hardware and the lowest-level sogtware. Also called simply architecture.
Registers are a limited number of special locations built directly in hardware. On major differnce between the variables of a programming language and registers is the limited number of registers, typically 32(64?) on current computers.
Memory is the storage area in which programs are kept when they are runngin and that contains the data needed by the running programs. Address is a value used to delineate the location of a specific data element within a memory array.
Arithmetic for Computer ¶
Keywords are ALU, Overflow/Underflow, Two'sComplement(,and...)
ALU is is a part of the execution unit, a core component of all CPUs. ALUs are capable of calculating the results of a wide variety of basic arithmetical computations such as integer and floating point arithmetic operation(addition, subtraction, multiplication, and division), bitwise logic operation, and bit shitf operation. Therefore the inputs to the ALU are the data to be operated on (called operands) and a code from the control unit indicating which operation to perform. Its output is the result of the computation.--from http://en.wikipedia.org/wiki/ALU
Two's complement is the most popular method of representing signed integers in computer science. It is also an operation of negation (converting positive to negative numbers or vice versa) in computers which represent negative numbers using two's complement. Its use is ubiquitous today because it doesn't require the addition and subtraction circuitry to examine the signs of the operands to determine whether to add or subtract, making it both simpler to implement and capable of easily handling higher precision arithmetic. Also, 0 has only a single representation, obviating the subtleties associated with negative zero (which is a problem in one's complement). --from http://en.wikipedia.org/wiki/Two's_complement
ALU is is a part of the execution unit, a core component of all CPUs. ALUs are capable of calculating the results of a wide variety of basic arithmetical computations such as integer and floating point arithmetic operation(addition, subtraction, multiplication, and division), bitwise logic operation, and bit shitf operation. Therefore the inputs to the ALU are the data to be operated on (called operands) and a code from the control unit indicating which operation to perform. Its output is the result of the computation.--from http://en.wikipedia.org/wiki/ALU
Two's complement is the most popular method of representing signed integers in computer science. It is also an operation of negation (converting positive to negative numbers or vice versa) in computers which represent negative numbers using two's complement. Its use is ubiquitous today because it doesn't require the addition and subtraction circuitry to examine the signs of the operands to determine whether to add or subtract, making it both simpler to implement and capable of easily handling higher precision arithmetic. Also, 0 has only a single representation, obviating the subtleties associated with negative zero (which is a problem in one's complement). --from http://en.wikipedia.org/wiki/Two's_complement
Terms ¶
BCDλ μμ§μ(μ μ)μ κ° μλ¦Ώμλ₯Ό λ€ κ°μ λΉνΈ, μ¦ λλΈλ‘ νννλ κ²μ΄λ€. μλ₯Ό λ€μ΄, 10μ§μ 635λ₯Ό BCD νμμΌλ‘ νννλ©΄ λ€μκ³Ό κ°μ΄ λλ€.
{{|
BCDκ° μ΄μ§μ ννμ λΉν΄ κ°λ μ₯μ μ€ νλλ, ννν μ μλ μ«μ ν¬κΈ°μ μ νμ΄ μλ€λ κ²μ΄λ€. λ€λ₯Έ μλ¦Ώμλ₯Ό μΆκ°νλ €λ©΄, κ·Έμ μλ‘μ΄ λ€ λΉνΈλ₯Ό μΆκ°νκΈ°λ§ νλ©΄ λλ€. μ΄μλ λμ‘°μ μΌλ‘, μ΄μ§μ νμμΌλ‘ ννλ μ«μλ κ·Έ μ«μλ₯Ό νννκΈ° μν΄ μ¬μ©λλ λΉνΈ, μ¦ 8, 16, 32, λλ 64 λΉνΈ λ±μ μν΄, ννν μ μλ κ°μ₯ ν° μ«μκ° μ νλλ€. --from http://terms.co.kr/
A Gray code is a binary numeral system where two successive values differ in only one digit. --from http://en.wikipedia.org/wiki/Gray_code
2-bit Gray codes
{{|
00 = 0
01 = 1
11 = 2
10 = 3
|}}
μ΄μ΄μ§λ μ«μμ μ리μ νλλ§ λ€λ₯΄κ² μ΄μ§μλ₯Ό νννλ κΈ°λ²μ΄λ€.
{{|
0110 0011 0101
|}}
BCDκ° μ΄μ§μ ννμ λΉν΄ κ°λ μ₯μ μ€ νλλ, ννν μ μλ μ«μ ν¬κΈ°μ μ νμ΄ μλ€λ κ²μ΄λ€. λ€λ₯Έ μλ¦Ώμλ₯Ό μΆκ°νλ €λ©΄, κ·Έμ μλ‘μ΄ λ€ λΉνΈλ₯Ό μΆκ°νκΈ°λ§ νλ©΄ λλ€. μ΄μλ λμ‘°μ μΌλ‘, μ΄μ§μ νμμΌλ‘ ννλ μ«μλ κ·Έ μ«μλ₯Ό νννκΈ° μν΄ μ¬μ©λλ λΉνΈ, μ¦ 8, 16, 32, λλ 64 λΉνΈ λ±μ μν΄, ννν μ μλ κ°μ₯ ν° μ«μκ° μ νλλ€. --from http://terms.co.kr/
2-bit Gray codes
{{|
00 = 0
01 = 1
11 = 2
10 = 3
|}}