Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 998 Bytes

assume.md

File metadata and controls

27 lines (20 loc) · 998 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: ASSUME
ASSUME
11/05/2019
ASSUME
ASSUME directive
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