Last active
December 1, 2017 05:51
-
-
Save perillamint/ee2037f2e666a07960557aa87d92afb4 to your computer and use it in GitHub Desktop.
Weird stars
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
; Assemble with nasm -f bin -o star.com star.asm | |
ORG 256 | |
Start: XOR AX, AX | |
JMP ent | |
NOP | |
NOP | |
NOP | |
NOP | |
NOP | |
RET | |
MOV AH, 0Eh | |
MOV AL, '*' | |
INT 10h | |
MOV AH, 0Eh | |
MOV AL, '*' | |
INT 10h | |
ent: MOV AH, 0Eh | |
MOV AL, '*' | |
INT 10h | |
MOV AH, 0Eh | |
MOV AL, 0Dh | |
INT 10h | |
MOV AH, 0Eh | |
MOV AL, 0Ah | |
INT 10h | |
MOV AX, [offset] | |
SUB AX, 6 | |
MOV [offset], AX | |
DB 0xEB | |
offset: DB 0xE3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment