[ASM] Boot sector code

Results 1 to 2 of 2
  1. #1
    Account Upgraded | Title Enabled! KrYpT0n is offline
    MemberRank
    Dec 2010 Join Date
    MasqueradeLocation
    205Posts

    [ASM] Boot sector code

    I was bored, couldn't log into msn, so i made a completely useless mbr boot sector code. It outputs "Youre a fag" and makes an L shaped rainbow. Don't take the code personally, i was just really bored ;S
    [ASM (NASM)] start: mov ax, 07C0h add ax, 288 mov ss, ax mov sp, 4096 mov ax, 07C0h mov - Pastebin.com

    and for those who do not like hilighting:
    Code:
    start:
    mov ax, 07C0h
    add ax, 288
    mov ss, ax
    mov sp, 4096
    mov ax, 07C0h
    mov ds, ax         
    mov al, 13h
    mov ah, 0
    int 10h  
    mov dx, 20  
    mov cx, 10  
    mov al, 1100b
    mov ah, 0ch
    pxs: 
    cmp dx, 50 
    jnz draw1  
    inc cx
    cmp cx, 50 
    jnz draw
    jmp pxe     
    draw:
    int 10h   
    inc al
    jmp pxs             
    draw1:
    inc dx
    jmp draw
    pxe:
    mov si, offset item
    call print
    jmp $
    item db 'Youre a Fag!1!!1!1!1!1111!11!one!1', 0
    print:
    mov ah, 0Eh
    .rep:
    lodsb
    cmp al, 0
    je .done
    int 10h
    jmp .rep
    .done:
    ret
     
    dw 0xAA55		;Standard PC boot signature


  2. #2

    Re: [ASM] Boot sector code

    MOV mbr, 1



Advertisement