@_mc680x0

JScript3.0+Syntax

@_mc680x0

Description

The @_mc680x0 variable is used in conditional compilation to determine if a Motorola 680×0 processor is being used. When the variable is not true, it is defined as NaN.

Example

Listing 9.6 alerts the user when a Motorola 680×0 processor is used.

Listing 9.6 Detect a Motorola 680×0 Processor
<script language="JScript">
<!-- Hide

@if (@_mc680x0)
  alert("You are using a Motorola 680x0 processor.");
@else
  alert("You are NOT using a Motorola 680x0 processor.");
@end

//Hide End -->
</script>
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.