Course details
Machine Level Programming
ISU Acad. year 2024/2025 Summer semester 6 credits
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.
Guarantor
Course coordinator
Language of instruction
Completion
Time span
- 39 hrs lectures
- 26 hrs pc labs
Assessment points
- 60 pts final exam (written part)
- 16 pts mid-term test (written part)
- 24 pts numeric exercises
Department
Lecturer
Husa Jakub, Ing., Ph.D. (DCSY)
Jaroš Marta, Ing., Ph.D. (DCSY)
Orság Filip, Ing., Ph.D. (DITS)
Instructor
Grézl František, Ing., Ph.D. (DCGM)
Husa Jakub, Ing., Ph.D. (DCSY)
Jaroš Marta, Ing., Ph.D. (DCSY)
Orság Filip, Ing., Ph.D. (DITS)
Sakin Martin, Ing. (DITS)
Semerád Lukáš, Ing., Ph.D. (DITS)
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 the connection of programming at a 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.
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. 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.
Prerequisite knowledge and skills
Basic knowledge of the C language programming.
Study literature
- Marek, R.: Assembler pro PC - učíme se programovat v jazyce, Computer Press, 2003, ISBN 80-7226-843-0
- Duntemann, Jeff. Assembly language step-by-step: programming with linux. 3rd ed. Indianapolis: Wiley, 2009. ISBN 978-0470497029.
- Irvine, Kip R. Assembly language for x86 processors. Seventh edition. Boston: Pearson, 2015. ISBN 978-0133769401.
- Intel® 64 and IA-32 architectures software developer’s manual combined volumes: 1, 2A, 2B, 2C, 2D, 3A, 3B, 3C, 3D, and 4. Webové stránky společnosti Intel [online]. [cit. 2022-01-06]. Dostupné z: https://www.intel.com/content/dam/develop/public/us/en/documents/325462-sdm-vol-1-2abcd-3abcd.pdf
- The Netwide Assembler: NASM, Quick reference Guide [online]. [cit. 2022-01-06]. Dostupné z: https://www.nasm.us/xdoc/2.15.05/nasmdoc.pdf
Fundamental literature
- Intel® 64 and IA-32 architectures software developer’s manual combined volumes: 1, 2A, 2B, 2C, 2D, 3A, 3B, 3C, 3D, and 4. Webové stránky společnosti Intel [online]. [cit. 2022-01-06]. Dostupné z: https://www.intel.com/content/dam/develop/public/us/en/documents/325462-sdm-vol-1-2abcd-3abcd.pdf
- The Netwide Assembler: NASM, Quick reference Guide [online]. [cit. 2022-01-06]. Dostupné z: https://www.nasm.us/xdoc/2.15.05/nasmdoc.pdf
Syllabus of lectures
- Introduction, numeral systems, number specification, binary arithmetic.
- Basic functions of a processor, machine language, symbolic language, assembler.
- Processor architecture - registers, operand, instruction format, memory addressing, interrupts.
- Processor architecture - transfers, arithmetical and logical instructions.
- Processor architecture - shifts and rotations, control transfer.
- Processor architecture - other instructions.
- Mid-term written test.
- Basics of low-level programming, elementary control structures.
- Functions and calling conventions.
- Modular programming, libraries, operating system services.
- Coprocessor FPU - architecture, real number format, instruction set.
- Coprocessor FPU - instruction set, programming, examples.
- Compiler for assembler - pseudoinstructions, directives, expressions, operators, operands and macros.
Syllabus of computer exercises
- Numeral systems (numeral system conversions), number representation (signed integers).
- Compilation, linking and execution of an application in a command line environment. Debugging in an Integrated Development Environment (IDE) and in a standalone debugger.
- Working with registers and memory (variables, arrays).
- Arithmetical instruction.
- Logical instructions, shifts and rotations.
- Jump instructions, function calling and parameter passing via registers. Library for basic input/output operations.
- Test.
- Basic control structures (if-then-else, while, do-while, for, switch-case).
- String instructions for array manipulation.
- Test.
- Function calling and calling conventions. Calling of services and functions of the operating system, calling of functions from the high-level language libraries.
- Programming of the FPU coprocessor.
- Test.
Progress assessment
- mid-term written test
- tests in computer exercises
- evaluated tests in the computer exercises
- tests in the computer exercises missed by a valid proved reason (health issues or other valid reasons) will be compensated within the next computer exercise or another date set by the guarantor of the course
Schedule
Day | Type | Weeks | Room | Start | End | Capacity | Lect.grp | Groups | Info |
---|---|---|---|---|---|---|---|---|---|
Mon | lecture | 1., 2., 3., 4. of lectures | D105 | 11:00 | 13:50 | 316 | 1BIB 2BIA 2BIB | 30 - 49 xx | Husa |
Mon | lecture | 5., 6., 8., 10., 13. of lectures | D105 | 11:00 | 13:50 | 316 | 1BIB 2BIA 2BIB | 30 - 49 xx | Jaroš |
Mon | lecture | 7., 9. of lectures | D105 | 11:00 | 13:50 | 316 | 1BIB 2BIA 2BIB | 30 - 49 xx | |
Mon | lecture | 11., 12. of lectures | D105 | 11:00 | 13:50 | 316 | 1BIB 2BIA 2BIB | 30 - 49 xx | Goldmann |
Mon | lecture | 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 12., 13. of lectures | D105 | 14:00 | 16:50 | 560 | 1BIA 2BIA 2BIB | 10 - 29 xx | Orság |
Mon | lecture | 1., 2., 3., 4., 5., 6., 7., 9., 10., 12., 13. of lectures | D0206 D0207 | 14:00 | 16:50 | 560 | 1BIA 2BIA 2BIB | 10 - 29 xx | Orság |
Mon | lecture | 2025-04-21 | D0206 D0207 D105 | 14:00 | 16:50 | 560 | 1BIA 2BIA 2BIB | 10 - 29 xx | Jaroš |
Tue | comp.lab | lectures | N103 N104 N105 | 08:00 | 09:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Tue | comp.lab | lectures | N103 N104 N105 | 10:00 | 11:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Tue | comp.lab | lectures | N103 N104 N105 | 12:00 | 13:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Tue | comp.lab | lectures | N103 N104 N105 | 14:00 | 15:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Tue | comp.lab | lectures | N103 N104 N105 | 16:00 | 17:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Tue | comp.lab | lectures | N103 N104 N105 | 18:00 | 19:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Wed | comp.lab | lectures | N103 N104 N105 | 08:00 | 09:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Wed | comp.lab | lectures | N103 N104 N105 | 10:00 | 11:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Wed | comp.lab | lectures | N103 N104 N105 | 12:00 | 13:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Wed | comp.lab | lectures | N103 N104 N105 | 14:00 | 15:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Wed | comp.lab | lectures | N103 N104 N105 | 16:00 | 17:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Wed | comp.lab | lectures | N103 N104 N105 | 18:00 | 19:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Thu | comp.lab | lectures | N103 N104 | 08:00 | 09:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Thu | comp.lab | lectures | N103 N104 N105 N204 | 10:00 | 11:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Thu | comp.lab | lectures | N104 N204 | 14:00 | 15:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Thu | comp.lab | lectures | N103 N104 | 16:00 | 17:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx | |
Thu | comp.lab | lectures | N103 N104 | 18:00 | 19:50 | 20 | 1BIA 1BIB 2BIA 2BIB | xx |
Course inclusion in study plans
- Programme BIT, 1st year of study, Compulsory
- Programme BIT (in English), 1st year of study, Compulsory