thanks
MelonSponge
This post has been edited by MelonSponge: 21 November 2009 - 03:12 PM




2 Votes
Posted 21 November 2009 - 02:39 PM
This post has been edited by MelonSponge: 21 November 2009 - 03:12 PM
Posted 21 November 2009 - 03:12 PM
Posted 21 November 2009 - 03:43 PM
Posted 21 November 2009 - 04:03 PM
Posted 23 November 2009 - 10:53 AM
Posted 23 November 2009 - 12:25 PM
[ORG 0x7C00] ; The BIOS loads the boot sector into memory location 0x7C00, so we offset to that point hang: jmp hang; Infinate loop times 510-($-$$) db 0 ; Fill the rest of the file with zero's dw 0x55AA
Posted 23 November 2009 - 12:31 PM
[BITS 16] ; Tells the assembler that its a 16 bit code [ORG 0x7C00] readKey: ; Read key label mov ah, 0 ; Sub function to read key from keyboard int 16h ; Await key press call printChar ; Print character just pressed (ascii value stored in al) call readKey ; Loop ret printChar: ; Procedure to print character on screen mov ah, 0x0E ; Tell BIOS that we need to print one charater on screen. mov bh, 0x00 ; Page no. mov bl, 0x07 ; Text attribute 0x07 is lightgrey font on black background int 10h ; Call video interrupt ret ; Return to calling procedure TIMES 510 - ($ - $$) db 0 ; Fill the rest of sector (512 Bytes) with 0 DW 0xAA55 ; Add boot signature at the end of bootloader
Posted 23 November 2009 - 12:36 PM
Posted 23 November 2009 - 12:41 PM
Posted 23 November 2009 - 12:50 PM
Posted 23 November 2009 - 12:59 PM
Posted 23 November 2009 - 01:36 PM
Posted 23 November 2009 - 02:05 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
