Mul

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: mul register1, register2

  • register1 = Register to multiply
  • register2 = Register to multiply by

Use

Used to multiply the value of one register by another. For multiplying registers by integers see muli

Example


100:     leti R1, '0000000A' //Set R1 to 10
         leti R2, '00000006' //Set R2 to 6
         window_msg 'Register 1 = <r1>' //Display the value of R1 in a window message
         mul R1, R2 //Multiply R1 by R2
         add_msg 'Register 1 = <r1>' //Display the new value of R1 in a window message
         winend  //Close window message
         ret 

Also see

leti, window_msg, add_msg, winend, ret