Title:

Machine Level Programming

Code:ISU
Ac.Year:2017/2018
Term:Summer
Curriculums:
ProgrammeFieldYearDuty
IT-BC-3BIT1stCompulsory
Language of Instruction:Czech
Credits:6
Completion:credit+exam (written)
Type of
instruction:
Hour/semLecturesSeminar
Exercises
Laboratory
Exercises
Computer
Exercises
Other
Hours:3900260
 ExamsTestsExercisesLaboratoriesOther
Points:60162400
Guarantor:Orság Filip, Ing., Ph.D. (DITS)
Lecturer:Hanáček Petr, doc. Dr. Ing. (DITS)
Orság Filip, Ing., Ph.D. (DITS)
Instructor:Benna Filip, Ing. (DIFS)
Bordovský Gabriel, Ing. (DCSY)
Budiský Jakub, Ing. (DCSY)
Čudová Marta, Ing. (DCSY)
Dvořák Michal, Ing. (DITS)
Goldmann Tomáš, Ing. (DITS)
Heidari Mona (DITS)
Husa Jakub, Ing. (DCSY)
Kešner Filip, Ing. (DCSY)
Orság Filip, Ing., Ph.D. (DITS)
Semerád Lukáš, Ing. (DITS)
Faculty:Faculty of Information Technology BUT
Department:Department of Intelligent Systems FIT BUT
Substitute for:
Assembly Languages (SOJ), FIT
 
Learning objectives:
  To acquaint students with computer programming at the lowest level with focus at chosen processor architecture. To introduce and teach how to actively work with numeral systems, representation of the signed and unsigned numbers, arithmetic in the binary numeral system and representation of the real numbers. To familiarise with a specific processor architecture, its instruction format and addressing modes. To teach to actively work with the common control structures in assembler using given instruction set. To show connection of programming at low level and high level programming via libraries and operating system services. To teach how to use floating point unit to calculate with real numbers.
Description:
  Numeral systems: signed and unsigned integer binary representation, binary arithmetic, real numbers in the IEEE-754 format. Assembly language: assembler, basic functions of a central processing unit (CPU). Specific CPU architecture: registers, memory organization, addressing, interrupt system, coprocessors, instruction set and instruction format. Programming in assembler: common control structures, compilation and linking of the code. Relation to the high level programming languages: calling conventions, operating system services. Coprocessor: real number format, instruction set, programming of the floating point unit.
Knowledge and skills required for the course:
  Basic knowledge of the C language programming.
Subject specific learning outcomes and competences:
  
Students acquaint with one specific processor architecture. They learn how to use the most important instructions of the processor and its coprocessor, programming of the control structures and they develop learn to develop simple applications (compilation and linking). They learn about calling conventions, some basic operating system services and how to call them. They learn how to practically use this knowledge.
Generic learning outcomes and competences:
  Students learn about processor architecture form the low level programming point of view, which is one of the very basic skills of an IT professional. They learn how to develop simple applications or libraries in assembler and how to connect them to high level programming language applications.
Syllabus of lectures:
 
  1. Introduction, numeral systems, number specification, binary arithmetic.
  2. Basic functions of a processor, machine language, symbolic language, assembler.
  3. Processor architecture - registers, operand, instruction format, memory addressing, interrupts.
  4. Processor architecture - transfers, arithmetical and logical instructions.
  5. Processor architecture - shifts and rotations, control transfer.
  6. Processor architecture - other instructions.
  7. Mid-term written test.
  8. Basics of low level programming, elementary control structures.
  9. Functions and calling conventions.
  10. Modular programming, libraries, operating system services.
  11. Coprocessor FPU - architecture, real number format, instruction set.
  12. Coprocessor FPU - instruction set, programming, examples.
  13. Compiler for assembler - pseudoinstructions, directives, expressions, operators, operands and macros.
Syllabus of computer exercises:
 
  1. Numeral systems (numeral system conversions), number representation (signed integers).
  2. Compilation, linking and execution of an application in a command line environment. Debugging in an Integrated Development Environment (IDE) and in a standalone debugger.
  3. Working with registers and memory (variables, arrays).
  4. Arithmetical instruction.
  5. Logical instructions, shifts and rotations.
  6. Jump instructions, function calling and parameter passing via registers. Library for basic input/output operations.
  7. Test.
  8. Basic control structures (if-then-else, while, do-while, for, switch-case).
  9. String instructions for array manipulation.
  10. Test.
  11. Function calling and calling conventions. Calling of services and functions of the operating system, calling of functions from the high level language libraries.
  12. Programming of the FPU coprocessor.
  13. Test.
Fundamental literature:
 
Study literature:
 
  • DUNTEMANN, Jeff. Assembly language step-by-step: programming with linux. 3rd ed. Indianapolis: Wiley, 2009. ISBN 978-0470497029.
  • Carter, P.: Assembly language tutorial, http://www.drpaulcarter.com/pcasm/, 2002
  • IRVINE, Kip R. Assembly language for x86 processors. Seventh edition. Boston: Pearson, 2015. ISBN 978-0133769401.
Progress assessment:
  
  • Mid-Term written test
  • Evaluation of activity in computer exercises
Exam prerequisites:
  At least 20 points earned during semester.

To successfully pass the course students must earn at least 25 points from the final examination.

 

Your IPv4 address: 54.92.164.184
Switch to IPv6 connection

DNSSEC [dnssec]