// // yesno.iml (c) 2000 Kari Laitinen // // This iml program is a very simple computer game. // The program first prompts the user with a question mark ?. // If the user of the programs hits key 5 the program // prints "Yes". Otherwise it prints "No". load_register_a_with_value '?' output_byte_from_register_a load_register_a_with_value ' ' output_byte_from_register_a waiting_user_reaction: jump_if_input_not_ready waiting_user_reaction input_byte_to_register_a load_register_b_with_value '5' jump_if_registers_equal user_typed_in_number_5 load_register_a_with_value 'N' output_byte_from_register_a load_register_a_with_value 'o' output_byte_from_register_a stop_processing user_typed_in_number_5: load_register_a_with_value 'Y' output_byte_from_register_a load_register_a_with_value 'e' output_byte_from_register_a load_register_a_with_value 's' output_byte_from_register_a stop_processing