• Post category:StudyBullet-3
  • Reading time:7 mins read


We will learn how to translate an assembly source file to an executable file, and run it on the emulator Bochs.

What you will learn

most fundamental basics of assembly language

a good understanding of the correspondence between machine code and assembly code

examples of the use of GNU assembler as and GNU linker ld

terminal and most commonly used Linux commands

concepts and installation of emulator Bochs, Linux Desktop, virtual machine and hypervisor

concepts and examples of interrupt, legacy BIOS, booting process, ASCII

fundamental use of script file

example use of classical steps of building and installing software package on Linux


Get Instant Notification of New Courses on our Telegram channel.


concepts and example of assembly, disassembly & linking

concepts and examples of RAM, ROM, executable file or runnable, object file, instruction set architecture

use of executable file viewer and object file viewer

Description

In this short course, we will firstly introduce what is assembly language and machine language, the correspondence between them. Then we write our very first program in assembly language.

In order to run this program, we need a program called assembler to translate our assembly program to an object file, and then use another program called linker to transfer this object file to the executable file. We are going to do all of these on a Linux Distribution Ubuntu Desktop.

I will show you how to do all of these step by step. From installing the Linux Desktop, the most commonly used Linux commands, to the use of GNU assembler, GNU linker and objdump. And how to make a script file.

We also cover a bunch of concepts: hexadecimal, disassembly, instruction set architecture, booting, Power on Self Test, read only memory, legacy BIOS, master booting block, random access memory, interrupt and ASCII character etc..

We will see how to do the compilation of the source code of the Bochs and the installation, using the classical steps: configure, make, and make install. Eventually we will run our first program on Bochs.

I guarantee you will learn the basic usage of lots of Linux commands and programs, understand better over the low-level computer technical concepts. From there we have the ability to explore more over the computer operating system. See you.

English
language

Content

Introduction
What you will learn in this course
Write our first assembly program and translate it to an object file
Write our very first program in assembly language
GNU assembler, Linux Desktop, virtual machine & hypervisor
Installing VirtualBox on macOS
Installing Ubuntu Desktop on VirtualBox (macOS)
Installing VirtualBox on Windows
Installing Ubuntu Desktop on VirtualBox (Windows)
Terminal, basic Linux commands and Binutils
Copy this into your first.s file, if you do not want to write the code yourself
Assembly, object file, binary, hexadecimal, disassembly, architecture and i8086
Link the object file and run it on Bochs
Linking, executable file or runnable, booting, POST, ROM, legacy BIOS, MBR & RAM
Installing emulator Bochs-2.6.9 on Ubuntu18.04LTS
Run our first program using Bochs
Explain our first assembly language program line by line
Make a script file to save clicks