Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Rollback to Revision 1
Source Link
Lennart
  • 10.4k
  • 16
  • 75
  • 103

no thing important here multiplication and division with marie

The question you are referring to has been deleted orwhere is no longer available.the mistake here , exactly in the the division , it returns the value of input x not return the result of the division

ORG 100 
Input
store x
input
store y
/ Summation 
Load x
Add y 
Store sum
/Output of the Summation
Load sum
Output
/ Subtraction
Load x
Subt y
Store sub
/Output of the subtraction
Load sub
Output
/ Multiplication
multloop, Load x
Add multi
Store multi
Load y
Subt one
Store y
Skipcond 400
Jump multloop
/Output of the multiplication
Load multi
Output
/ Division
Load zero 
Store quotient
divloop, Load x
Subt y
Skipcond 800
Jump Adding
Jump output
Adding, Store x
Load quotient
Add one
Store quotient
Jump divloop
/Output of Division
output, Load x
Store quotient
Load quotient
Output
Halt 
/ Variable Declarations
x, dec 0
y, dec 0
one, dec 1
remainder, dec 0
quotient, dec 0
sum, dec 0
sub, dec 0
multi, dec 0
zero, dec 0

no thing important here

The question you are referring to has been deleted or is no longer available.

multiplication and division with marie

where is the mistake here , exactly in the the division , it returns the value of input x not return the result of the division

ORG 100 
Input
store x
input
store y
/ Summation 
Load x
Add y 
Store sum
/Output of the Summation
Load sum
Output
/ Subtraction
Load x
Subt y
Store sub
/Output of the subtraction
Load sub
Output
/ Multiplication
multloop, Load x
Add multi
Store multi
Load y
Subt one
Store y
Skipcond 400
Jump multloop
/Output of the multiplication
Load multi
Output
/ Division
Load zero 
Store quotient
divloop, Load x
Subt y
Skipcond 800
Jump Adding
Jump output
Adding, Store x
Load quotient
Add one
Store quotient
Jump divloop
/Output of Division
output, Load x
Store quotient
Load quotient
Output
Halt 
/ Variable Declarations
x, dec 0
y, dec 0
one, dec 1
remainder, dec 0
quotient, dec 0
sum, dec 0
sub, dec 0
multi, dec 0
zero, dec 0
deleted 880 characters in body; edited tags; edited title
Source Link
user22410271
user22410271

multiplication and division with marie no thing important here

whereThe question you are referring to has been deleted or is the mistake here , exactly in the the division , it returns the value of input x not return the result of the divisionno longer available.

ORG 100 
Input
store x
input
store y
/ Summation 
Load x
Add y 
Store sum
/Output of the Summation
Load sum
Output
/ Subtraction
Load x
Subt y
Store sub
/Output of the subtraction
Load sub
Output
/ Multiplication
multloop, Load x
Add multi
Store multi
Load y
Subt one
Store y
Skipcond 400
Jump multloop
/Output of the multiplication
Load multi
Output
/ Division
Load zero 
Store quotient
divloop, Load x
Subt y
Skipcond 800
Jump Adding
Jump output
Adding, Store x
Load quotient
Add one
Store quotient
Jump divloop
/Output of Division
output, Load x
Store quotient
Load quotient
Output
Halt 
/ Variable Declarations
x, dec 0
y, dec 0
one, dec 1
remainder, dec 0
quotient, dec 0
sum, dec 0
sub, dec 0
multi, dec 0
zero, dec 0

multiplication and division with marie

where is the mistake here , exactly in the the division , it returns the value of input x not return the result of the division

ORG 100 
Input
store x
input
store y
/ Summation 
Load x
Add y 
Store sum
/Output of the Summation
Load sum
Output
/ Subtraction
Load x
Subt y
Store sub
/Output of the subtraction
Load sub
Output
/ Multiplication
multloop, Load x
Add multi
Store multi
Load y
Subt one
Store y
Skipcond 400
Jump multloop
/Output of the multiplication
Load multi
Output
/ Division
Load zero 
Store quotient
divloop, Load x
Subt y
Skipcond 800
Jump Adding
Jump output
Adding, Store x
Load quotient
Add one
Store quotient
Jump divloop
/Output of Division
output, Load x
Store quotient
Load quotient
Output
Halt 
/ Variable Declarations
x, dec 0
y, dec 0
one, dec 1
remainder, dec 0
quotient, dec 0
sum, dec 0
sub, dec 0
multi, dec 0
zero, dec 0

no thing important here

The question you are referring to has been deleted or is no longer available.

Post Undeleted by Community Bot
Post Deleted by Community Bot
Source Link
user22410271
user22410271

multiplication and division with marie

where is the mistake here , exactly in the the division , it returns the value of input x not return the result of the division

ORG 100 
Input
store x
input
store y
/ Summation 
Load x
Add y 
Store sum
/Output of the Summation
Load sum
Output
/ Subtraction
Load x
Subt y
Store sub
/Output of the subtraction
Load sub
Output
/ Multiplication
multloop, Load x
Add multi
Store multi
Load y
Subt one
Store y
Skipcond 400
Jump multloop
/Output of the multiplication
Load multi
Output
/ Division
Load zero 
Store quotient
divloop, Load x
Subt y
Skipcond 800
Jump Adding
Jump output
Adding, Store x
Load quotient
Add one
Store quotient
Jump divloop
/Output of Division
output, Load x
Store quotient
Load quotient
Output
Halt 
/ Variable Declarations
x, dec 0
y, dec 0
one, dec 1
remainder, dec 0
quotient, dec 0
sum, dec 0
sub, dec 0
multi, dec 0
zero, dec 0
created from staging ground

AltStyle によって変換されたページ (->オリジナル) /