Learning x86 with NASM - Multiplying numbers with MUL and IMUL

preview_player
Показать описание
In this video, you will learn how to apply signed and unsigned multiplication instructions through MUL and IMUL in x86.

Рекомендации по теме
Комментарии
Автор

very happy i found your playlist of nasm x86, very well explained and you're doing things step by step, i think anyone trying to learn assembly should look into your content, good job man

pcrl-HH
Автор

When you use "stepi" in gdb you can specify the amount of steps. For instance "stepi 3" will perform the next 3 steps.
Also when using "info registers", you can specify multiple registers. For instance "info registers al ebx eflags" will print all three registers

hpprt
Автор

0xFF for 1 byte is not 255, its -1. The first bit is to check for sign, you were wrong in previous video also where you said it knows sign because of sign bit, sign bit will change upon next operation, but the value will still be negative - because of same reason. Range of a 1 byte register is -128 to 127

shashankrajora
Автор

Hi I keep getting "zsh: segmentation fault" errors after linking and attempting to run the program prior to debugging. Our code is exactly the same. Not sure what I'm doing wrong...

noahbarrow
Автор

MUL sounds like "null",
IMUL sounds like "under null",
This is the most useless comment maybe

ocaly