• Machine Language
    9 replies, posted
Help in machine language [editline]07:19PM[/editline] Hi! Does anyone know how to multiply and divide in machine language? Please help me! Thank you so much!
20/0?
Write a program that will multiply the value in a certain cell and place the result in another cell. Write a program that will divide the value in a certain cell and place the result in another cell. Assume both are positive integers expressed in 2's complement notation
No we're not doing your homework for you.
[QUOTE=compwhizii;22092450]No we're not doing your homework for you.[/QUOTE] Even if someone wanted to do it, he didn't even say which instruction set.
Perfect reason to join a forum. To post shit threads.
100 That is the number 4. Hope this helps.
It would help if you told us what kind of system it was x86? ARM? MIPS? PPC?
[QUOTE=roarrr;22091832]Help in machine language [editline]07:19PM[/editline] Hi! Does anyone know how to multiply and divide in machine language? Please help me! Thank you so much![/QUOTE] mul and div now go do your own homework
These are for the HCS12, but they may be similar: emul, emuls, mul, ediv, edivs, fdiv, idiv, idivs. You still need to do your own research and figure out how to use them though.
Sorry, you need to Log In to post a reply to this thread.