RUVIDEO
Поделитесь видео 🙏

Assembly language programming tutorial (Registers & Arithmetic operations) смотреть онлайн

Assembly Registry

EAX, AX, AH, AL (Accumulator) - multiplier and splitter, I / O operations

EBX, BX, BH, BL (Base) - indirect memory addressing

ECX, CX, CH, CL (Counter) - Cycle, Shift and Rotation Counter

EDX, DX, DH, DL (Data) - indirect input / output addressing

  2. pointers and index registers - used to place the address, 32-bit, lower 16 bits denotes a name without E and cannot be subdivided (unlike previous          universal registers):

EBP, BP (Base Pointer) - base register, addressing function parameters and local variables on the stack (bottom of the stack), it is not reasonable to change it arbitrarily

ESP, SP (Stack Pointer) - pointer to stack top (stack top address), this also is not wise to change arbitrarily

EDI, DI (Destination Index) - destination address

ESI, SI (Source Index) - source address
 

Assembly Numerical operations

INC destination     - to "destination" add one (register, memory)

DEC destination             - subtract one from the destination (register, memory)

ADD destination, source        - add source to destination (register - value, memory - value, register - register, memory - register, register - memory)

SUB destination, source        -  subtract source from destination (register - value, memory - value, register - register, memory - register, register - memory)

NEG destination       - turn the sign in the destination (register, memory)

MUL source         - the AL register multiplies with the source (eight-bit register or memory) and writes the result to the AX register (eight-bit multiplication).

MUL source          - AX multiplies with the source (sixteen-bit register or memory) and writes the result (32 bits) to the DX, AX register pair (sixteen-bit multiplication).

MUL source          - The EAX register is multiplied by the source (32-bit register or memory) and the result (64 bits) is written to the EDX, EAX register pair (32-bit multiplication).

IMUL source         - like MUL, but multiplication with a sign

IMUL source, constant          - like IMUL, the source is multiplied by the constant and stored in the source

IMUL destination, source        - signed multiple target and source (16.32-bit register - 16.32-bit register, 16.32-bit register - memory)

IMUL destination, source, constant         - move to destination, source multiplied by constant (16.32-bit register - 16.32-bit register - value, 16.32-bit register - memory - value)

DIV source         - the AX register divide by source (8-bit register or memory) and the share is stored in AL, the remainder is divided into AH (eight-bit division)

DIV source       - double-bit in DX, AX registers source divide by source (16-bit register or memory) and share in AX, the remainder is stored into DX (sixteen-bit division)

DIV source       - 8 bytes in the EDX, EAX divide by source (32-bit register or memory), and the share is stored in EAX, the remainder is stored into EDX (thirty-bit division)

IDIV source      - like DIV but sign division

Tasks

Write in Assembly function: int perimeter_of_rectangle (int a, int b), which calculates the perimeter of a rectangle.

Write in Assembly function: int area_of_rectangle (int a, int b) that calculates the area of a rectangle.

Write in Assembly function: int perimeter_of_square (int a), which calculates the perimeter of a square.

Write in Assembly function: int area_of_square (int a) that calculates the area of a square.

Write in Assembly function: int perimeter_of_triangle (int a, int b, int c), which calculates the perimeter of a triangle.

Write in Assembly function: int perimeter_of_triangle2 (int a), which calculates the perimeter of an equilateral  triangle

Write in Assembly function: int perimeter_of_triangle3 (int a, int b), which calculates the perimeter of a rectangular triangle.

Write in Assembly function: int perimeter_of_triangle4 (int a, int h), which calculates the perimeter of a triangle from side length and height.

Write in Assembly function: int area_of_cube (int a), which calculates the area of a cube.

Write a program that calculates the content of the triangle according to the Heron formula: P = sqrt (s * (s-a) * (s-b) * (s-c)), s = (a + b + c) / 2. Enter to the program a, b, c (in C language), then the calculation is done in the Assembler to the final sqrt operation, which you execute using the sqrt function in C (you must insert the math.h header file). Write the result (using printf in C).

FULL COURSE ON ASSEMBLY:
https://www.udemy.com/learn-assembly-language-fast/?couponCode=YOUTUBE

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Assembly language programming tutorial (Registers & Arithmetic operations)» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.