I have homework to write assembly code for checking if number is odd or even. I have this code
code_seg SEGMENT ASSUME cs:code_seg, ds:data_seg; mov
sadly am not very experienced with assembly, but in pseudocode there is a feature called "mod" which gives the remainder of a division.
have a look here: Assembly Language - How to Do Modulo?
for example:
x = 3 z = x mod 2
z would be 1, and if x were equal, z would be 0