tef's changes to make compatible with PDP-11s