Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MicroProcessor Simulator

Status
Not open for further replies.

Boom2k

Programmer
Joined
Nov 28, 2006
Messages
3
Location
GB
Hi guys,

I'm in the process of learning assembly using this popular free simulator, I'm doing a piece of work that outputs ASCII to the VDU however I'm trying to perform some multiplication with MUL but have a problem

I have the value 6 stored in the AL register along with the value 3 in the BL register.

I'm trying to multiply this so I get 18 in the AL register with:

MUL al, bl

The returned value is 12, if I change the BL register value to 4, it does return 18 but isnt 3 X 6 = 18?, why will ASM only return 18 if I multiply by 4?
 
thanks, me not thinking was expecting a result of that in denary/decimal. I was subject to some jokes lol, my bad thanks for the reply.
 
Status
Not open for further replies.

Similar threads

  • Locked
  • Question Question
Replies
0
Views
126

Part and Inventory Search

Sponsor

Back
Top