Skip to content

Instantly share code, notes, and snippets.

@emerak
Created February 17, 2012 04:24
Show Gist options
  • Select an option

  • Save emerak/1850635 to your computer and use it in GitHub Desktop.

Select an option

Save emerak/1850635 to your computer and use it in GitHub Desktop.

Revisions

  1. emerak created this gist Feb 17, 2012.
    73 changes: 73 additions & 0 deletions gistfile1.asm
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,73 @@
    mov AH,04H
    int 1AH


    mov bh,10h
    mov al,dl
    div bh

    mov bl,al
    add bl,30h
    mov bh,ah
    add bh,30h

    mov AL,bl
    mov AH,0EH
    int 10H
    mov AL,bh
    mov AH,0EH
    int 10H

    mov AL,2fh
    mov AH,0EH
    int 10H


    mov ah,00h


    mov AL,bh
    mov AH,0EH
    int 10H

    mov AL,2fh
    mov AH,0EH
    int 10H

    mov ah,00h

    mov bh,10h
    mov al,ch
    div bh

    mov bl,al
    add bl,30h
    mov bh,ah
    add bh,30h

    mov AL,bl
    mov AH,0EH
    int 10H
    mov AL,bh
    mov AH,0EH
    int 10h
    mov ah,00h


    mov bh,10h
    mov al,cl
    div bh

    mov bl,al
    add bl,30h
    mov bh,ah
    add bh,30h

    mov AL,bl
    mov AH,0EH
    int 10H
    mov AL,bh
    mov AH,0EH
    int 10H