Learn Assembly in 10 Days! Day 3.

If you would like to go back to the previous day, have a look at: https://www.pcocular.com/2021/05/10/learn-assembly-in-10-days-day-2/

Assembly language

This is the 3. day of learning Assembly language.

Instructions – Part 2 – Instructions Mnemonic

An instruction mnemonic is a special token in assembly language that represents a machine-level instruction.

In assembly language, letters and numbers are used to represent machine-level words. Letters, which typically represent one or two bytes, are used to define identifiers and pseudo-ops. Numbers, which typically represent four bits, are used to define variables in source code.

Subroutines are procedures or functions within a computer program.

Instructions – Part 3 – Operands

Operands are used in assembly language to indicate the values that a subroutine or function expects to receive as input. Operands typically include input/output (IO) addresses, register numbers, and numerical constants.

Instructions – Part 4 – Comments

Comments are typically used to explain the meaning of source-code segments or to document how a routine should be implemented. The environment can aid to insert comments from menu or by using shortcut keys.

An assembly language environment is software that helps programmers create and edit source code and produce executable code from it. Assembly language environments typically provide a text editor, macros, code generation tools, and syntax coloring. They also typically provide a debugger that can inspect or modify the state of running programs.

Installing emu8086 and Printing Hello World!

A “Hello World” program is a computer program that outputs or displays the message “Hello, World!”.

The purpose of a Hello World program is to illustrate how to write programs in a given programming language.

Simple Input and Output

Input and output is the capability for a computer program to input information from an external storage or device or send information to an external storage or device.

Registers

Registers are a type of memory that holds program variables. Registers are often referred to by their names.

Note

Compiler: A compiler is a computer program that translates a high-level language into binary code. The created binary code can be executed more efficiently than if it were using a line-by-line interpreter.

Assembler: An assembler is a computer program that translates assembly language source code into binary machine code.

Thats all for today, if you want to learn Assembly language in 10 Days. 🙂

For more info about computer programming, please read PC Ocular website articles!

Benkő Attila is a Hungarian senior software developer, independent researcher and author of many computer science related papers.

Leave a Reply