Skip to content

Instantly share code, notes, and snippets.

@jsutlovic
Created October 5, 2014 16:36
Show Gist options
  • Save jsutlovic/ebb9e06e06f55ca5969f to your computer and use it in GitHub Desktop.
Save jsutlovic/ebb9e06e06f55ca5969f to your computer and use it in GitHub Desktop.
mov bx, 40 ; Assign a value to bx
cmp bx, 4
jl then_block
cmp bx, 40
jl else_if_block
mov al, 'C'
jmp done_block
then_block:
mov al, 'A'
jmp done_block
else_if_block:
mov al, 'B'
done_block:
mov ah, 0x0e
int 0x10
jmp $
; Padding and magic number
times 510-($-$$) db 0
dw 0xaa55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment