Useless instructions: Difference between revisions

Added ACTION!
(Added Algol 68)
(Added ACTION!)
Line 23:
=={{header|8086 Assembly}}==
<code>xor ax,ax</code> (or any other data register) takes fewer bytes to encode than <code>mov ax,0</code> and achieves the same result. The only difference is that <code>mov ax,0</code> doesn't set the flags, which can be used to the programmer's advantage when sequencing operations.
 
=={{header|Action!}}==
The ACTION! language has 4 fundamental data types, BYTE, CHAR, INT and CARD. The first two can be used interchangably and are 8-bit unsigned integers. This is presumably for documentation purposes, however the language also has a macro facility that would allow the programmer to <code>DEFINE CHAR="BYTE"</code> or <code>DEFINE BYTE="CHAR"</code> if only one was available.
 
=={{header|ALGOL 68}}==
3,043

edits