_DATA SEGMENT foo dd 0 _DATA ENDS _TEXT SEGMENT bar: mov eax, foo shl foo, 5 cmp foo, 16 cmp word ptr foo, 10000 cmp foo, 10000000 je bar _TEXT ENDS END