1
00:00:12,210 --> 00:00:16,880
Hello, in this video, we will start to learn macro's with examples.

2
00:00:16,950 --> 00:00:24,840
OK, first of all, I will put here my data display, OK, like that, a little bit bigger one and the

3
00:00:24,840 --> 00:00:27,790
internal memory I will select as the other side.

4
00:00:27,810 --> 00:00:29,610
You can see it as three, OK.

5
00:00:29,640 --> 00:00:31,350
The other is value this one.

6
00:00:31,560 --> 00:00:34,120
And I will insert here a momentary button.

7
00:00:34,320 --> 00:00:35,400
This is the first thing.

8
00:00:35,670 --> 00:00:39,060
And in here I will say micro.

9
00:00:40,180 --> 00:00:49,180
Of OK, and in the one condition, I will select it and this will be macaron, and in the one condition

10
00:00:49,180 --> 00:00:56,510
I will change it to green like that, and in zero I was selected as one.

11
00:00:56,570 --> 00:01:03,640
OK, this is the first thing, OK, inside of it, it will we will go to micro and after execute macro

12
00:01:03,640 --> 00:01:04,680
I will use it.

13
00:01:04,690 --> 00:01:07,890
OK, what is our address in here.

14
00:01:07,900 --> 00:01:09,790
It is dollar sign is tree.

15
00:01:09,790 --> 00:01:14,440
OK, and we need to say to here right address like M zero.

16
00:01:14,440 --> 00:01:16,990
It doesn't matter in the macro.

17
00:01:16,990 --> 00:01:23,740
Let's select after execute macro and the other side and three equals ok.

18
00:01:26,990 --> 00:01:30,050
Three, let's increment by, one by.

19
00:01:31,060 --> 00:01:40,870
Plus one, OK, and now what will happen when I press to this button each time this area, OK, these

20
00:01:40,870 --> 00:01:48,220
three data address or this data register will be increment one by one.

21
00:01:48,270 --> 00:01:50,760
OK, let's test once.

22
00:01:51,630 --> 00:01:59,880
Now it is opening, OK, you can see it is zero, I clicked and you can see it, it is increasing,

23
00:01:59,890 --> 00:02:00,450
OK?

24
00:02:02,670 --> 00:02:07,470
OK, you can see it one by one it is.

25
00:02:08,360 --> 00:02:12,710
Increasing so McCrone, it's incremented by one.

26
00:02:13,310 --> 00:02:15,360
So our Macra is working.

27
00:02:15,380 --> 00:02:17,030
OK, I will close it.

28
00:02:17,240 --> 00:02:20,610
And in here, let's continue with another one.

29
00:02:20,870 --> 00:02:21,500
Imagine.

30
00:02:22,960 --> 00:02:31,520
If you want to add another data in in here, for example, I will add my inputs numeric entry.

31
00:02:31,540 --> 00:02:39,010
This is the first one and also this copy to here, OK, as basically I will select this as in here,

32
00:02:39,010 --> 00:02:40,750
internal memory again.

33
00:02:41,020 --> 00:02:43,060
And this will be five.

34
00:02:43,390 --> 00:02:48,230
And this will be an internal memory and six.

35
00:02:48,730 --> 00:02:49,300
OK.

36
00:02:49,420 --> 00:02:59,230
And when the macro is on, what will we say this dollar sign three equals OK, plus six.

37
00:02:59,500 --> 00:03:01,120
And I will say OK.

38
00:03:03,610 --> 00:03:13,180
And OK, so now I will activate my simulator and I will put here five and I will put your time and microphone

39
00:03:13,450 --> 00:03:18,100
and you can see it is 16 y, OK.

40
00:03:18,130 --> 00:03:21,140
It is now 15 and 16 because of Y.

41
00:03:21,160 --> 00:03:21,930
Let's take a look.

42
00:03:21,940 --> 00:03:29,350
Wants to hear and left click to it and inside of the macro and ok to macro is running.

43
00:03:29,350 --> 00:03:32,800
I will cut it to after execute macro to here.

44
00:03:32,810 --> 00:03:42,850
OK, so now it will be equal to fifteen and five and to hear ten micron.

45
00:03:42,850 --> 00:03:53,050
So you can see these two data is added to here and 15 micron is fifteen and fifty five to seven Macrovision

46
00:03:53,050 --> 00:03:53,810
than the result.

47
00:03:53,830 --> 00:03:55,840
So this is the addition.

48
00:03:55,870 --> 00:04:05,140
OK, and if we go to hear left click to here and the macro after execute macro and we can say to here

49
00:04:05,680 --> 00:04:06,250
six.

50
00:04:07,180 --> 00:04:07,930
Minus.

51
00:04:09,630 --> 00:04:10,380
Five, OK?

52
00:04:10,810 --> 00:04:14,720
And I will say, OK, let's start it once more.

53
00:04:15,940 --> 00:04:25,540
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.

54
00:04:25,810 --> 00:04:29,240
And you can see the result of these two is running.

55
00:04:29,260 --> 00:04:39,400
And also for the met instructions inside of the HMO Macross, we can use multiplication and division

56
00:04:39,400 --> 00:04:39,850
also.

57
00:04:39,870 --> 00:04:47,920
OK, left click to here and we can go after execute macro and we can multiply these two that are like

58
00:04:47,920 --> 00:04:48,210
that.

59
00:04:48,220 --> 00:04:55,120
OK, this is the first thing and I will say OK and also we can say two here, for example, another

60
00:04:55,120 --> 00:05:02,500
one macro to here that's added to here after execute macro uh let's say for.

61
00:05:03,810 --> 00:05:10,020
It goes to OK, and we can say to here six divided by.

62
00:05:11,200 --> 00:05:12,160
Five, OK?

63
00:05:12,550 --> 00:05:16,420
And I will say, OK, now I will copy it to here.

64
00:05:19,030 --> 00:05:22,010
And also like that and like that.

65
00:05:22,030 --> 00:05:22,790
OK.

66
00:05:23,710 --> 00:05:24,530
A little bit.

67
00:05:26,400 --> 00:05:33,190
OK, the first one will be multiplication result and the second one will be division result.

68
00:05:33,220 --> 00:05:36,060
OK, this is the address and I will start it.

69
00:05:37,540 --> 00:05:42,560
OK, now this will be 60 and this will be five.

70
00:05:42,580 --> 00:05:47,810
OK, multiplication and division, OK, multiplication result is three hundred.

71
00:05:47,830 --> 00:05:50,720
This is correct and the division result is 12.

72
00:05:50,740 --> 00:05:51,460
This is correct.

73
00:05:51,490 --> 00:05:55,570
OK, so after execute macro is working, OK?

74
00:05:55,820 --> 00:06:02,920
And when we press this macro is running and we can use them all is in for example in the macro area

75
00:06:03,160 --> 00:06:09,430
and after execute macro control x and we can use of macro for example.

76
00:06:09,680 --> 00:06:15,920
And if we say suddenly activated, ok, the result will be returned to here.

77
00:06:16,150 --> 00:06:19,570
OK, you can see it is not working because of why.

78
00:06:19,600 --> 00:06:24,130
First of all, we need to select in here 60 and this will be five.

79
00:06:24,160 --> 00:06:25,360
OK then.

80
00:06:26,420 --> 00:06:34,700
OK, it is work, but let's go to here, first of all, I will check wants to of macro and on macro

81
00:06:35,210 --> 00:06:39,650
after the button is off, then there is this macro's will be run.

82
00:06:39,830 --> 00:06:41,690
And how can we test it?

83
00:06:41,690 --> 00:06:44,810
I am just thinking, OK.

84
00:06:46,130 --> 00:06:47,800
Maybe we can do it like that.

85
00:06:49,330 --> 00:06:57,820
Again and 60 and again, 55, I will let click through it so you can see this is not their own macro

86
00:06:58,090 --> 00:06:58,800
of micro.

87
00:06:58,990 --> 00:07:01,770
When I release my hand, the result will be returned to here.

88
00:07:01,990 --> 00:07:11,530
OK, but if we use on macro left, click to here and macro and control it to here inside of the on macro.

89
00:07:11,530 --> 00:07:12,390
What will happen.

90
00:07:13,810 --> 00:07:14,520
You will see.

91
00:07:16,300 --> 00:07:24,460
Sixty and five left click to hear the end result is written to hear immediately, OK, these are just

92
00:07:24,460 --> 00:07:26,890
the Met instructions inside of the HMO.

93
00:07:26,980 --> 00:07:30,580
Macro's in the next tutorial, we will work with the floating numbers.

94
00:07:30,610 --> 00:07:32,710
OK, I am finished for this video.

95
00:07:32,830 --> 00:07:34,530
See you in the next video.
