Skip to content

Instantly share code, notes, and snippets.

@logistic-bot
Created August 30, 2020 15:13
Show Gist options
  • Save logistic-bot/22503d2fe6b97e63720609903c76e72e to your computer and use it in GitHub Desktop.
Save logistic-bot/22503d2fe6b97e63720609903c76e72e to your computer and use it in GitHub Desktop.
Prints the alphabet, in alternating caps (aBcD...)
; bios setup
mov ah, 0x0e
; print
mov bl, 0 ; offset
mov bh, 97 ; lowercase
mov ch, 65 ; uppercase
loop:
; lowercase
mov al, bh
add al, bl
int 0x10
inc bl
; uppercase
mov al, ch
add al, bl
int 0x10
inc bl
cmp al, ('Z')
je exit
jmp loop
exit:
jmp $
; end
times 510-($-$$) db 0
db 0x55, 0xaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment