Angeljruiz 0 Newbie Poster

Hey everyone, this is my first day coding in assebly! I was wondering if this code has any errors, well no errors per se, but like bad practice i guess

section .data

x: dd 6
y: dd 7
msgx: db "X greater than y", 0xa
msgxlen equ $-msgx
msgy: db "Y greater than x", 0xa
msgylen equ $-msgy
msge: db "Equal", 0xa
msgelen equ $-msge

section .text

global main
main:
    mov eax, [x]
    mov ebx, [y]
    cmp eax, ebx
    je .equal 
    jg .xgreat

    push msgylen
    push msgy
    push 1

.write:

    mov eax, 0x4
    sub esp, 4
    int 0x80

    push 0
    mov eax, 0x1
    sub esp, 4
    int 0x80

.equal:

    push msgelen
    push msge
    push 1

    jmp .write

.xgreat:

    push msgxlen
    push msgx
    push 1

    jmp .write

Thanks!