sim: sim_core.hrl: document that the status flags are sticky

This commit is contained in:
Mikael Pettersson
2020-07-11 21:15:50 +02:00
parent d28582edb5
commit a1eac8e351

View File

@@ -72,6 +72,8 @@
-type word() :: uint36_t().
%%% Program Flags
%%% The Overflow, Carry 1/2, Floating Overflow, Floating Underflow, and No Divide
%%% flags are sticky: hardware sets them, but software must explicitly clear them.
%%% Note: architecturally these occupy bits 0-12 (PDP10 bit numbering) of a
%%% 36-bit word, but here we express them as occupying bits 12-0 (normal bit
%%% numbering) of a 13-bit word. The bit numbers in the definitions are from