DAT 2343 Comparison of The LMC and General
- Slides: 16
DAT 2343 Comparison of The LMC and General Computer Models © Alan T. Pinck / Algonquin College; 2003
Storage Encoding LMC Decimal (10 code levels for smallest storage signal) General Computer Binary (2 code levels for smallest storage signal
Storage Units LMC 3 decimal digits = LMC word no provision for positive or negative sign no provision for character encoding (no LMC “byte”) General Computer typically 32 -bit (varies) = GC word single bit commonly used as a sign indicator character encoding: typically 8 bit = GC byte (ASCII/EBCDIC)
Mailboxes / Memory LMC one LMC word (single elements never span multiple mailboxes) only RAM type of memory General Computer byte (several sequential byte locations may be combined to form a larger unit both RAM and ROM types of memory
Mailbox/Memory Addressing LMC 100 addresses starting at 0 absolute addressing direct addressing only General Computer (typically) millions of addresses starting at 0 usually some form of base plus offset address both direct and indirect (indexed) addressing
Addressing Modes LMC direct (actual address is part of instruction) absolute (actual, unmodified address) General Computer may be direct or the address may be supplied within a register (indirect) often a direct offset added to an indirect base required to get absolute address
System Start/Reset LMC resets counter to 00 starts the LM instruction cycle from a possible SLEEP state General Computer resets instruction pointer to some fixed address (may or may not be address 0) starts processor instruction cycle from possibly HALT state
Instruction Cycle LMC read and remembers instruction at counter increment counter by 1 lookup and perform operation based on instruction just read n repeat General Computer copies instruction at instruction pointer (possibly multiple bytes) into instruction register increment instruction pointer by length of instruction select operation circuit using op field of instruction n repeat
Instruction Cycle Sequencing LMC LM remembers and performs activities in required sequence General Computer
Instruction Format LMC first digit : op code second & third digits: one of n direct address n op code extension n ignored General Computer first byte (or bit field): op code subsequent bytes/bit fields: may be multiple of n register ID n address n immediate value
Operation Lookup/Selection LMC General Computer LM compares op code bit pattern of instruction from instruction remembered to table of register is feed through operations on wall. a selector circuit to activate appropriate operation circuit
Calculator / Registers LMC single calculator / value combined with value from mailbox: only ADD and SUBT I/O (port) source/destination General Computer multiple registers / values (typically 4 to 16) combined with value from another register or from memory: ADD, SUBT, MULT, DIV and others I/O port source/destination
Indicators / Flags LMC indicators on calculator n n n Positive (or Zero) Zero Negative only modified by arithmetic operations General Computer one set of flags for all registers (typically) n Zero n Carry n Sign n Overflow only modified by certain operations
Input and Output LMC one input and one output port no status or control IO ports available all IO through calculator General Computer multiple input and output ports, identified by a port address typically status and IO ports associated with device data port IO through one particular register
“Standard” Operations Missing from the LMC “Advanced” arithmetic (multiplication, division, etc. ) Shift, Rotate, and Boolean operations Subroutine Call and Return (except in limited form in “son of LMC” Conditional Jumps (conditional skips required instead)
End of Lecture
- Little man computer instruction set
- Archivos system.ini; win.ini; system.dat; user.dat
- Resolucion 2343 de 1996
- Comparison convergence test
- Absolute addressing mode in computer architecture
- Lmc nova
- Gãy liên mấu chuyển slide
- Baird lmc
- Lac microeconomia
- Lmc lac
- Lmc mcwg
- Ti8 schedule
- Lmc brp
- Hình ảnh bộ gõ cơ thể búng tay
- Lp html
- Bổ thể
- Tỉ lệ cơ thể trẻ em