// aaaabbbbcccc.iml (c) 1998-2000 Kari Laitinen // This program prints the text "aaaabbbbcccc" on the // screen. It calls a subroutine which prints the contents // of register A four times on the screen. // First register A is loaded with 'a', the ascii code of // letter a (61H). When register A is incremented, its // content becomes first 61H and later 62H. These are the // ascii codes of letters b and c. beginning_of_program: load_register_a_with_value 'a' call_subroutine output_register_a_four_times increment_register_a call_subroutine output_register_a_four_times increment_register_a call_subroutine output_register_a_four_times stop_processing output_register_a_four_times: output_byte_from_register_a output_byte_from_register_a output_byte_from_register_a output_byte_from_register_a return_to_calling_program