; School of Computer Engineering ; K.N. Toosi University of Technology %include "asm_io.inc" segment .data msg1: db "bit 7 is on", 10, 0 msg2: db "bit 7 is off", 10, 0 segment .text global asm_main asm_main: enter 0,0 pusha ;; ========================== call read_int test ax, 10000000b jnz onlbl mov eax, msg2 jmp endl onlbl: mov eax, msg1 endl: call print_string ;; ========================== popa leave ret