# MX\_GETHASH, SETHASH

> [HTML Version](mx_get_set_hash.htm)

_Reviewed and revised April 2024_

**xcall MIAMEX, MX\_GETHASH, status**

**xcall MIAMEX, MX\_SETHASH, status**

MX\_GETHASH (MIAMEX 36) returns _status_ indicating whether you are in AMOS hash compatibility mode. In this mode, the hash algorithm (used by DIR/H) treats LF line terminators the same as CRLF pairs, so that normal text files will have the same hash code under Unix, which typically uses LF line terminators, as they do under AMOS, which typically uses CRLF terminators. 

MX\_SETHASH (MIAMEX 37) allows you to set or reset the AMOS hash compatibility mode. 

**Parameters**

_status_  ([Integer](integer.md))   \[in for SET, out for GET\]

For GETHASH, returns zero if not in AMOS hash compatibility mode, else non-zero.

For SETHASH, set to zero to reset (clear) AMOS hash compatibility mode, else non-zero to set it.

**Comments**

Note that the SET.LIT command also allows you to query and set/reset this option.