Hi Guys
I am fairly new at assembly languages and I need to learn how to do a simple program
what it would do is take 3 stacks, one with three characters and one with numbers 1-3(in random order) and the third one would be empty.
Basically I want to make a program that takes the letter from the first stack and check its number on the second stack and essentially put it in that order on the third stack
So for example if the character was B and the number was 2 then B would be BETWEEN the two other characters at the end of the script.
so assume the stacks were like this (before the program)
Stack 1 Stack 2 Stack 3(empty)
B 1 -
A 3 -
D 4 -
E 5 -
L 2 -
After the program stack 3 would look like this
Stack 3
B
L
A
D
E
It would be nice if stacks A and B were not effected
And it does not necessarily have to be a letter as long as all the data in stack A is the same size.
I know this might be much but it would really help me a lot.
thanks.
I am fairly new at assembly languages and I need to learn how to do a simple program
what it would do is take 3 stacks, one with three characters and one with numbers 1-3(in random order) and the third one would be empty.
Basically I want to make a program that takes the letter from the first stack and check its number on the second stack and essentially put it in that order on the third stack
So for example if the character was B and the number was 2 then B would be BETWEEN the two other characters at the end of the script.
so assume the stacks were like this (before the program)
Stack 1 Stack 2 Stack 3(empty)
B 1 -
A 3 -
D 4 -
E 5 -
L 2 -
After the program stack 3 would look like this
Stack 3
B
L
A
D
E
It would be nice if stacks A and B were not effected
And it does not necessarily have to be a letter as long as all the data in stack A is the same size.
I know this might be much but it would really help me a lot.
thanks.