// abcde.iml (c) 1998-2000 Kari Laitinen // This program prints the letters ABCDE to the screen. // Register A is used to count how many characters have // been printed. The character code being output to the // screen is held in register B. The first code is 'A' // which means 41H, the ASCII code of letter A. // As the ASCII code in register B is incremented after // each printing, a different letter will be printed // each time. beginning_of_program: load_register_a_with_value 5 load_register_b_with_value 'A' print_next_letter: output_byte_from_register_b increment_register_b decrement_register_a jump_if_register_a_zero end_of_program jump_to_address print_next_letter end_of_program: stop_processing