Implement 'set_window', 'split_window' and 'set_cursor' opcodes