;JG - Jump if greater - SF,OF,ZF(Sign FLAG) section .data value1 db 30 vlaue2 db 20 section .text global _start start: mov al, byte [value1] mov bl, byte [value2] cmp al, bl jg greater not_greater: ; your code hre for not greater case jmp done greater: ; your code hre for greater case done: ;Exit code here mov rax, 60 xor rdi, rdi syscal