Skip to content

Instantly share code, notes, and snippets.

@perillamint
Last active December 1, 2017 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perillamint/ee2037f2e666a07960557aa87d92afb4 to your computer and use it in GitHub Desktop.
Save perillamint/ee2037f2e666a07960557aa87d92afb4 to your computer and use it in GitHub Desktop.
Weird stars
; 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