Stuck? Need help? Ask questions on our forums.
*/
*/

View \BOOT.ASM

Magic Assembler (v1.10)

Submitted By: Unknown
Rating: starstarstarhalf star (Rate It)


; +------------------------------------------------------------+ ;
; | Sample bootsector program for use with the Magic Assembler | ;
; +------------------------------------------------------------+ ;
        mov     ax,07c0
        mov     ds,ax
        xor     bx,bx
        mov     ah,0e
        mov     si,offset(string)
@1      lodsb
        cmp     al,00
        je      @2
        int     10
        jmps    @1
@2      xor     ah,ah
        int     16
        callf   ffff:0000

string  db      'Sorry, this disk is not bootable.' 0a 0d
        db      'Please insert another disk and press any key to reboot.' 0a 0d 00

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings