// text_with_spaces.iml (c) 1997 - 2000 Kari Laitinen // This program is an example where a called subroutine // calls another subroutine. Subroutine "print_text_with_spaces" // is called from the main program, and subroutine "print_space" // is called from subroutine "print_text_with_spaces". beginning_of_main_program: set_memory_pointer test_text call_subroutine print_text_with_spaces end_of_main_program: stop_processing test_text: STRING "Test!" print_text_with_spaces: load_register_a_from_memory jump_if_register_a_zero end_of_print_text_with_spaces output_byte_from_register_a call_subroutine print_space increment_memory_pointer jump_to_address print_text_with_spaces end_of_print_text_with_spaces: return_to_calling_program print_space: load_register_a_with_value ' ' output_byte_from_register_a return_to_calling_program