Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 998 Bytes

File metadata and controls

27 lines (20 loc) · 998 Bytes
description Learn more about: ASSUME
title ASSUME
ms.date 11/05/2019
f1_keywords
ASSUME
helpviewer_keywords
ASSUME directive
ms.assetid cd162070-aee9-4c65-babc-005c6cc73d7c

ASSUME

Enables error checking for register values. (32-bit MASM only.)

Syntax

ASSUME segregister:name, segregister:name...⟧
ASSUME dataregister:type, dataregister:type...⟧
ASSUME register:ERROR, register:ERROR...⟧
ASSUMEregister:NOTHING, register:NOTHING...⟧

Remarks

After an ASSUME is put into effect, the assembler watches for changes to the values of the given registers. ERROR generates an error if the register is used. NOTHING removes register error checking. You can combine different kinds of assumptions in one statement.

See also

Directives Reference
MASM BNF Grammar