Thread: [asm] kernel boot loader

Results 1 to 3 of 3
  1. #1 [asm] kernel boot loader 
    Jibblez
    Guest
    credits: PeeHPee (me), thiefmn6092 (told me about problems with jmp short)
    Code:
    [BITS 32]
    global _start, _stack
    extern _main
    
    SECTION .text
        _start:
            jmp _boot
            align 4
        _boot:
            mov  esp, _stack
            push dword 2
            popf
            call _main
    
    SECTION .bss
            resb 512
        _stack:
    oh, also, the C function would not be _main(void), it would be main(void)
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2007
    Posts
    252
    Thanks given
    0
    Thanks received
    0
    Rep Power
    106
    yay asm!

    no idea what use this has for me but I still feel great about myself for being able to understand what it says... I last used it 4 months ago
    Reply With Quote  
     

  3. #3  
    Renown Programmer
    veer's Avatar
    Join Date
    Nov 2007
    Posts
    3,746
    Thanks given
    354
    Thanks received
    1,370
    Rep Power
    3032
    just saw this... nice leech peehpee good job this is from rohitab

    ps i bet you dont know what thats doing
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •