Hello, in this video, we will start to learn macro's with examples.
OK, first of all, I will put here my data display, OK, like that, a little bit bigger one and the
internal memory I will select as the other side.
You can see it as three, OK.
The other is value this one.
And I will insert here a momentary button.
This is the first thing.
And in here I will say micro.
Of OK, and in the one condition, I will select it and this will be macaron, and in the one condition
I will change it to green like that, and in zero I was selected as one.
OK, this is the first thing, OK, inside of it, it will we will go to micro and after execute macro
I will use it.
OK, what is our address in here.
It is dollar sign is tree.
OK, and we need to say to here right address like M zero.
It doesn't matter in the macro.
Let's select after execute macro and the other side and three equals ok.
Three, let's increment by, one by.
Plus one, OK, and now what will happen when I press to this button each time this area, OK, these
three data address or this data register will be increment one by one.
OK, let's test once.
Now it is opening, OK, you can see it is zero, I clicked and you can see it, it is increasing,
OK?
OK, you can see it one by one it is.
Increasing so McCrone, it's incremented by one.
So our Macra is working.
OK, I will close it.
And in here, let's continue with another one.
Imagine.
If you want to add another data in in here, for example, I will add my inputs numeric entry.
This is the first one and also this copy to here, OK, as basically I will select this as in here,
internal memory again.
And this will be five.
And this will be an internal memory and six.
OK.
And when the macro is on, what will we say this dollar sign three equals OK, plus six.
And I will say OK.
And OK, so now I will activate my simulator and I will put here five and I will put your time and microphone
and you can see it is 16 y, OK.
It is now 15 and 16 because of Y.
Let's take a look.
Wants to hear and left click to it and inside of the macro and ok to macro is running.
I will cut it to after execute macro to here.
OK, so now it will be equal to fifteen and five and to hear ten micron.
So you can see these two data is added to here and 15 micron is fifteen and fifty five to seven Macrovision
than the result.
So this is the addition.
OK, and if we go to hear left click to here and the macro after execute macro and we can say to here
six.
Minus.
Five, OK?
And I will say, OK, let's start it once more.
It is 25 and this will be 15 and the result will be 10 and 33 and the result will be 18 and like that.
And you can see the result of these two is running.
And also for the met instructions inside of the HMO Macross, we can use multiplication and division
also.
OK, left click to here and we can go after execute macro and we can multiply these two that are like
that.
OK, this is the first thing and I will say OK and also we can say two here, for example, another
one macro to here that's added to here after execute macro uh let's say for.
It goes to OK, and we can say to here six divided by.
Five, OK?
And I will say, OK, now I will copy it to here.
And also like that and like that.
OK.
A little bit.
OK, the first one will be multiplication result and the second one will be division result.
OK, this is the address and I will start it.
OK, now this will be 60 and this will be five.
OK, multiplication and division, OK, multiplication result is three hundred.
This is correct and the division result is 12.
This is correct.
OK, so after execute macro is working, OK?
And when we press this macro is running and we can use them all is in for example in the macro area
and after execute macro control x and we can use of macro for example.
And if we say suddenly activated, ok, the result will be returned to here.
OK, you can see it is not working because of why.
First of all, we need to select in here 60 and this will be five.
OK then.
OK, it is work, but let's go to here, first of all, I will check wants to of macro and on macro
after the button is off, then there is this macro's will be run.
And how can we test it?
I am just thinking, OK.
Maybe we can do it like that.
Again and 60 and again, 55, I will let click through it so you can see this is not their own macro
of micro.
When I release my hand, the result will be returned to here.
OK, but if we use on macro left, click to here and macro and control it to here inside of the on macro.
What will happen.
You will see.
Sixty and five left click to hear the end result is written to hear immediately, OK, these are just
the Met instructions inside of the HMO.
Macro's in the next tutorial, we will work with the floating numbers.
OK, I am finished for this video.
See you in the next video.