Divide

Divide RAM[0] by RAM[1] and put the result in RAM[2] and the remainder in RAM[3].

Test 1

Inputs

RAM[0] = 12
RAM[1] = 6

Outputs

RAM[2] = 2
RAM[3] = 0

Test 2

Inputs

RAM[0] = 12
RAM[1] = 5

Outputs

RAM[2] = 2
RAM[3] = 2