ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
TOPIC
SIMULATING A
SIMPLE MACHINE
(SMACO)
Presented by:-
Ms. Sonali Kharade
Assistant Professor, Computer Science Department
THANK YOU
MUST WATCH NEXT VIDEO
FOR HOW TO FIND
PROGRAM OPCODE
Introduction
 SMACO is not a real machine but used to illustrate features of machine
language and techniques used in assembler. It is a hypothetical decimal
machine.
 The program of SMACO contains the statements or instructions having
decimal number.
Features
 Memory address is range from 000 to 999.
 It has 4 internal register called general purpose register AREG,BREG,CREG
& DREG.
 Hypothetical machine used 6 condition code LT, LE, EQ,GT,GE & ANY
respectively.
Instruction Format
Opcode Register Operands
The machine instruction contains the opcode of 2 digits,
the register operand of 1 digit, and the memory operand
of 3 digits.
Instruction Set
Instruction
Opcode
Assembly
Mnemonics
Description
00 STOP Terminates the execution
01 ADD Add contents of register to address
02 SUB Subtract contents of address from register
03 MULT Multiply both operand
04 MOVER Assign the content of memory to register
05 MOVEM Assign the content of register to memory
06 COMP Compares contents of register with memory location and sets
condition code.
07 BC Branch on condition
08 DIV Divide first operand with second
09 READ Read the number from the standard input & store address
10 PRINT Output the number stored at address on the standard output
device
Condition Code
Mnemonics Code
LT 1
LE 2
EQ 3
GT 4
GE 5
ANY 6
Registers
Register Code
AREG 1
BREG 2
CREG 3
DREG 4

More Related Content

What's hot (18)

Intro to assembly language
Intro to assembly languageIntro to assembly language
Intro to assembly language
United International University
Ìý
Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...
Maitri Thakkar
Ìý
Microprocessor chapter 9 - assembly language programming
Microprocessor  chapter 9 - assembly language programmingMicroprocessor  chapter 9 - assembly language programming
Microprocessor chapter 9 - assembly language programming
Wondeson Emeye
Ìý
12109 microprocessor & programming
12109 microprocessor & programming12109 microprocessor & programming
12109 microprocessor & programming
Gaurang Thakar
Ìý
Mp &mc programs
Mp &mc programsMp &mc programs
Mp &mc programs
Haritha Hary
Ìý
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
Martial Kouadio
Ìý
Lecture6
Lecture6Lecture6
Lecture6
misgina Mengesha
Ìý
Alp 05
Alp 05Alp 05
Alp 05
gswapnil86
Ìý
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlBca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Rai University
Ìý
Assembly fundamentals
Assembly fundamentalsAssembly fundamentals
Assembly fundamentals
Syed Zaid Irshad
Ìý
Unit 4 assembly language programming
Unit 4   assembly language programmingUnit 4   assembly language programming
Unit 4 assembly language programming
Kartik Sharma
Ìý
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer Science
Transweb Global Inc
Ìý
Emu8086
Emu8086Emu8086
Emu8086
rangarajb2005
Ìý
Lecture5(1)
Lecture5(1)Lecture5(1)
Lecture5(1)
misgina Mengesha
Ìý
L11 assembly-language-programming-of-atmega328 p
L11 assembly-language-programming-of-atmega328 pL11 assembly-language-programming-of-atmega328 p
L11 assembly-language-programming-of-atmega328 p
rsamurti
Ìý
Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086
Urvashi Singh
Ìý
Compiler optimization
Compiler optimizationCompiler optimization
Compiler optimization
liu_ming50
Ìý
Compiler optimization techniques
Compiler optimization techniquesCompiler optimization techniques
Compiler optimization techniques
Hardik Devani
Ìý
Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...Computer Organization - Programming the basic computer : Machine Language, As...
Computer Organization - Programming the basic computer : Machine Language, As...
Maitri Thakkar
Ìý
Microprocessor chapter 9 - assembly language programming
Microprocessor  chapter 9 - assembly language programmingMicroprocessor  chapter 9 - assembly language programming
Microprocessor chapter 9 - assembly language programming
Wondeson Emeye
Ìý
12109 microprocessor & programming
12109 microprocessor & programming12109 microprocessor & programming
12109 microprocessor & programming
Gaurang Thakar
Ìý
Mp &mc programs
Mp &mc programsMp &mc programs
Mp &mc programs
Haritha Hary
Ìý
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
Martial Kouadio
Ìý
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed controlBca 2nd sem-u-3.1-basic computer programming and micro programmed control
Bca 2nd sem-u-3.1-basic computer programming and micro programmed control
Rai University
Ìý
Assembly fundamentals
Assembly fundamentalsAssembly fundamentals
Assembly fundamentals
Syed Zaid Irshad
Ìý
Unit 4 assembly language programming
Unit 4   assembly language programmingUnit 4   assembly language programming
Unit 4 assembly language programming
Kartik Sharma
Ìý
Operand and Opcode | Computer Science
Operand and Opcode | Computer ScienceOperand and Opcode | Computer Science
Operand and Opcode | Computer Science
Transweb Global Inc
Ìý
L11 assembly-language-programming-of-atmega328 p
L11 assembly-language-programming-of-atmega328 pL11 assembly-language-programming-of-atmega328 p
L11 assembly-language-programming-of-atmega328 p
rsamurti
Ìý
Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086
Urvashi Singh
Ìý
Compiler optimization
Compiler optimizationCompiler optimization
Compiler optimization
liu_ming50
Ìý
Compiler optimization techniques
Compiler optimization techniquesCompiler optimization techniques
Compiler optimization techniques
Hardik Devani
Ìý

Similar to SIMULATING A SIMPLE MACHINE (smaco) (20)

L10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 pL10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 p
rsamurti
Ìý
microprocessor
 microprocessor microprocessor
microprocessor
ATTO RATHORE
Ìý
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
Workingad
Ìý
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
Ìý
1-AVR Introduction to Atmega32 good .pdf
1-AVR  Introduction to Atmega32  good .pdf1-AVR  Introduction to Atmega32  good .pdf
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
Ìý
Micro overview
Micro overviewMicro overview
Micro overview
lamamokalled
Ìý
EC8691-MPMC-PPT.pptx
EC8691-MPMC-PPT.pptxEC8691-MPMC-PPT.pptx
EC8691-MPMC-PPT.pptx
Manikandan813397
Ìý
Assembly Language for as level computer science
Assembly Language for as level computer scienceAssembly Language for as level computer science
Assembly Language for as level computer science
variedongz
Ìý
programmable logic arrays, programmable logic designs,
programmable logic arrays, programmable logic designs,programmable logic arrays, programmable logic designs,
programmable logic arrays, programmable logic designs,
Alam527453
Ìý
LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777
LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777
LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777
muradportal
Ìý
Assembly programming
Assembly programmingAssembly programming
Assembly programming
Omar Sanchez
Ìý
16bit RISC Processor
16bit RISC Processor16bit RISC Processor
16bit RISC Processor
Shashi Suman
Ìý
instruction codes
instruction codesinstruction codes
instruction codes
SangeethaSasi1
Ìý
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
Deepmala Sharma
Ìý
SS-assemblers 1.pptx
SS-assemblers 1.pptxSS-assemblers 1.pptx
SS-assemblers 1.pptx
kalavathisugan
Ìý
MT2301_Unit II.pdf
MT2301_Unit II.pdfMT2301_Unit II.pdf
MT2301_Unit II.pdf
Kannan Kanagaraj
Ìý
מצגת פרויקט
מצגת פרויקטמצגת פרויקט
מצגת פרויקט
Yehezkel Padael
Ìý
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
SaifulAhmad27
Ìý
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
yedles
Ìý
Chapter 4-The Von Neumann Model-PattPatel.ppt
Chapter 4-The Von Neumann Model-PattPatel.pptChapter 4-The Von Neumann Model-PattPatel.ppt
Chapter 4-The Von Neumann Model-PattPatel.ppt
safatma
Ìý
L10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 pL10 assembly-language-programming-of-atmega328 p
L10 assembly-language-programming-of-atmega328 p
rsamurti
Ìý
microprocessor
 microprocessor microprocessor
microprocessor
ATTO RATHORE
Ìý
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
Workingad
Ìý
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
Ìý
1-AVR Introduction to Atmega32 good .pdf
1-AVR  Introduction to Atmega32  good .pdf1-AVR  Introduction to Atmega32  good .pdf
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
Ìý
Micro overview
Micro overviewMicro overview
Micro overview
lamamokalled
Ìý
EC8691-MPMC-PPT.pptx
EC8691-MPMC-PPT.pptxEC8691-MPMC-PPT.pptx
EC8691-MPMC-PPT.pptx
Manikandan813397
Ìý
Assembly Language for as level computer science
Assembly Language for as level computer scienceAssembly Language for as level computer science
Assembly Language for as level computer science
variedongz
Ìý
programmable logic arrays, programmable logic designs,
programmable logic arrays, programmable logic designs,programmable logic arrays, programmable logic designs,
programmable logic arrays, programmable logic designs,
Alam527453
Ìý
LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777
LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777
LCDF3_Chap_03_P2.ppt777777777777777777777777777777777777
muradportal
Ìý
Assembly programming
Assembly programmingAssembly programming
Assembly programming
Omar Sanchez
Ìý
16bit RISC Processor
16bit RISC Processor16bit RISC Processor
16bit RISC Processor
Shashi Suman
Ìý
instruction codes
instruction codesinstruction codes
instruction codes
SangeethaSasi1
Ìý
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
Deepmala Sharma
Ìý
SS-assemblers 1.pptx
SS-assemblers 1.pptxSS-assemblers 1.pptx
SS-assemblers 1.pptx
kalavathisugan
Ìý
מצגת פרויקט
מצגת פרויקטמצגת פרויקט
מצגת פרויקט
Yehezkel Padael
Ìý
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
yedles
Ìý
Chapter 4-The Von Neumann Model-PattPatel.ppt
Chapter 4-The Von Neumann Model-PattPatel.pptChapter 4-The Von Neumann Model-PattPatel.ppt
Chapter 4-The Von Neumann Model-PattPatel.ppt
safatma
Ìý

More from sonalikharade3 (6)

EDITORS
EDITORSEDITORS
EDITORS
sonalikharade3
Ìý
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
sonalikharade3
Ìý
Phishing Attack Awareness and Prevention
Phishing Attack Awareness and PreventionPhishing Attack Awareness and Prevention
Phishing Attack Awareness and Prevention
sonalikharade3
Ìý
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
sonalikharade3
Ìý
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
sonalikharade3
Ìý
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
sonalikharade3
Ìý
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
sonalikharade3
Ìý
Phishing Attack Awareness and Prevention
Phishing Attack Awareness and PreventionPhishing Attack Awareness and Prevention
Phishing Attack Awareness and Prevention
sonalikharade3
Ìý
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
sonalikharade3
Ìý
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
sonalikharade3
Ìý
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
sonalikharade3
Ìý

Recently uploaded (20)

Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Ìý
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
Ìý
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
Association for Project Management
Ìý
The Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir Dotan
The Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir DotanThe Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir Dotan
The Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir Dotan
History of Stoke Newington
Ìý
How to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣs
How to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣsHow to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣs
How to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣs
Celine George
Ìý
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
Ìý
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Ìý
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣsHow to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
Celine George
Ìý
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
Ìý
How to Manage Putaway Rule in Odoo 17 Inventory
How to Manage Putaway Rule in Odoo 17 InventoryHow to Manage Putaway Rule in Odoo 17 Inventory
How to Manage Putaway Rule in Odoo 17 Inventory
Celine George
Ìý
N.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity BriefingN.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity Briefing
Mebane Rash
Ìý
Computer Network Unit IV - Lecture Notes - Network Layer
Computer Network Unit IV - Lecture Notes - Network LayerComputer Network Unit IV - Lecture Notes - Network Layer
Computer Network Unit IV - Lecture Notes - Network Layer
Murugan146644
Ìý
Kaun TALHA quiz Finals -- El Dorado 2025
Kaun TALHA quiz Finals -- El Dorado 2025Kaun TALHA quiz Finals -- El Dorado 2025
Kaun TALHA quiz Finals -- El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Ìý
How to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of SaleHow to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of Sale
Celine George
Ìý
PUBH1000 Module 3: Public Health Systems
PUBH1000 Module 3: Public Health SystemsPUBH1000 Module 3: Public Health Systems
PUBH1000 Module 3: Public Health Systems
Jonathan Hallett
Ìý
Reordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣs
Reordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣsReordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣs
Reordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣs
Celine George
Ìý
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
Ìý
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
Ìý
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptxFESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
DanmarieMuli1
Ìý
Database population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slidesDatabase population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slides
Celine George
Ìý
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Ìý
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
Ìý
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...APM People Interest Network Conference - Tim Lyons - The neurological levels ...
APM People Interest Network Conference - Tim Lyons - The neurological levels ...
Association for Project Management
Ìý
The Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir Dotan
The Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir DotanThe Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir Dotan
The Battle of Belgrade Road: A WW1 Street Renaming Saga by Amir Dotan
History of Stoke Newington
Ìý
How to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣs
How to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣsHow to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣs
How to Setup WhatsApp in Odoo 17 - Odoo ºÝºÝߣs
Celine George
Ìý
Adventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil SirAdventure Activities Final By H R Gohil Sir
Adventure Activities Final By H R Gohil Sir
GUJARATCOMMERCECOLLE
Ìý
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣsHow to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
How to use Init Hooks in Odoo 18 - Odoo ºÝºÝߣs
Celine George
Ìý
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
Ìý
How to Manage Putaway Rule in Odoo 17 Inventory
How to Manage Putaway Rule in Odoo 17 InventoryHow to Manage Putaway Rule in Odoo 17 Inventory
How to Manage Putaway Rule in Odoo 17 Inventory
Celine George
Ìý
N.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity BriefingN.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity Briefing
Mebane Rash
Ìý
Computer Network Unit IV - Lecture Notes - Network Layer
Computer Network Unit IV - Lecture Notes - Network LayerComputer Network Unit IV - Lecture Notes - Network Layer
Computer Network Unit IV - Lecture Notes - Network Layer
Murugan146644
Ìý
How to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of SaleHow to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of Sale
Celine George
Ìý
PUBH1000 Module 3: Public Health Systems
PUBH1000 Module 3: Public Health SystemsPUBH1000 Module 3: Public Health Systems
PUBH1000 Module 3: Public Health Systems
Jonathan Hallett
Ìý
Reordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣs
Reordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣsReordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣs
Reordering Rules in Odoo 17 Inventory - Odoo ºÝºÝߣs
Celine George
Ìý
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
Ìý
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
Ìý
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptxFESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
DanmarieMuli1
Ìý
Database population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slidesDatabase population in Odoo 18 - Odoo slides
Database population in Odoo 18 - Odoo slides
Celine George
Ìý

SIMULATING A SIMPLE MACHINE (smaco)

  • 1. TOPIC SIMULATING A SIMPLE MACHINE (SMACO) Presented by:- Ms. Sonali Kharade Assistant Professor, Computer Science Department
  • 2. THANK YOU MUST WATCH NEXT VIDEO FOR HOW TO FIND PROGRAM OPCODE
  • 3. Introduction  SMACO is not a real machine but used to illustrate features of machine language and techniques used in assembler. It is a hypothetical decimal machine.  The program of SMACO contains the statements or instructions having decimal number. Features  Memory address is range from 000 to 999.  It has 4 internal register called general purpose register AREG,BREG,CREG & DREG.  Hypothetical machine used 6 condition code LT, LE, EQ,GT,GE & ANY respectively.
  • 4. Instruction Format Opcode Register Operands The machine instruction contains the opcode of 2 digits, the register operand of 1 digit, and the memory operand of 3 digits.
  • 5. Instruction Set Instruction Opcode Assembly Mnemonics Description 00 STOP Terminates the execution 01 ADD Add contents of register to address 02 SUB Subtract contents of address from register 03 MULT Multiply both operand 04 MOVER Assign the content of memory to register 05 MOVEM Assign the content of register to memory 06 COMP Compares contents of register with memory location and sets condition code. 07 BC Branch on condition 08 DIV Divide first operand with second 09 READ Read the number from the standard input & store address 10 PRINT Output the number stored at address on the standard output device
  • 6. Condition Code Mnemonics Code LT 1 LE 2 EQ 3 GT 4 GE 5 ANY 6 Registers Register Code AREG 1 BREG 2 CREG 3 DREG 4