.data inChar: .fill 2 .text .global _start _start: movl $3,%eax movl $0,%ebx movl $inChar,%ecx movl $1,%edx int $0x80 # in divw # dx is the MSW of dividend # ax is the LSW of dividend # operand is the divisor (word) movw $0,%dx movw inChar,%ax movw $2,%bx divw %bx test: movl $1,%eax movl $0,%ebx int $0x80