Machine Instructions fall under what categorys?

Coldkilla

Diamond Member
Oct 7, 2004
3,944
0
71
I was reading up a few days ago on the three categorys that machine instructions fall under. I cannot recall what they were. I thought it was: Data Transfer Group, Arithmetic Group, Control Group. But I started to get mixed thoughts on the Fetch-Decode-Execute cycle as well. I'm having troble understanding, could someone give an example of at least one of these categorys? I'm really getting lost! Thx
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
It's been awhile, but I'll take a stab...

Data transfer: MOV EAX, [EBX]
(Move the value at the memory location pointed to by EBX into EAX)

Arithmetic: ADD EAX, EBX
(Add the value in EBX to EAX and place result in EAX)

Control: CALL ProcName, or RET
(Transfer control to ProcName, or return to previous stack frame)
 

Coldkilla

Diamond Member
Oct 7, 2004
3,944
0
71
Aye Thanks. Just spent an hour on this and forgot about the forum lol. How's my stab:

Data Transfer:
Consists of instructions that request the movement of data from one location to another. Like loading or storing. (Example: 1234)

Arithmetic/Logic Group:
Tell the control unit to request an activity within the arithmetic/logic unit. Some operations like: and, or, xor, shirt, or rotate. (Example 8231)

Control Group:
Direct execution of the program. Operations like Jump. (Example: COOO, or halt)
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Sounds about right. You might reword that last one "control of execution flow" rather than "direct execution of the program."