Created
August 30, 2020 15:13
-
-
Save logistic-bot/22503d2fe6b97e63720609903c76e72e to your computer and use it in GitHub Desktop.
Prints the alphabet, in alternating caps (aBcD...)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; bios setup | |
mov ah, 0x0e | |
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