Sign in to follow this  
assainator

assembly div/mul confusion

Recommended Posts

heey all, this week I started coding is assembly again (not anything intresting tough) but i'm having trubble understanding the 'div' and 'mul' instructions. I understand 'add' and 'sub' add ax, bx ; add bx to ax I understand that this: mov ax, 10 ; move 10 into ax mov bx, 2 ; mov 2 into bx mul bx ; multiply ax with bx ofcource the result is 20 but where is the result stored? And a second question: Does it make a difference if it are 8-bit values instead of 16-bit values? I mean where the result is stored? mov al, 10 ; move 10 into al mov bl, 2 ; mov 2 into bl mul bl ; multiply al with bl thanks in advance, assainator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this