[Tack-devel] INN / SET EM instruction behavior on ignored trap
Moved to https://github.com/davidgiven/ack
Brought to you by:
dtrg
From: Carl E. C. <cec...@ya...> - 2019-06-21 16:34:56
|
Greetings, The EM interpreter, which I am using as reference for the EM testsuite does not define the behavior of the INN and SET instructions when the bitno is outside of the allowed range and the ESET trap is ignored. I propose the following for SET: Create the set but not set any bit, since the bit number is invalid.I propose the following for INN: Always push a value of zero indicating that the bit is not in the set, thus avoiding reading illegal memory. Comments welcome...If ok, i will update the code accordingly... Carl |