"Fossies" - the Fresh Open Source Software Archive

Member "dosemu-1.4.0/src/tools/periph/bootsect.S" (4 May 2007, 1871 Bytes) of package /linux/misc/old/dosemu-1.4.0.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PowerPC Assembler source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # 
    2 # (C) Copyright 1992, ..., 2007 the "DOSEMU-Development-Team".
    3 #
    4 # for details see file COPYING.DOSEMU in the DOSEMU distribution
    5 #
    6 
    7 #  modified by Robert Sanders, gt8134b@prism.gatech.edu
    8 #   for dosemu 0.49, 4/1/93
    9 #
   10 
   11 .code16 
   12 .text
   13     .globl  boot_sect
   14 boot_sect:
   15 
   16 head:
   17 
   18 # I have modified this for hdimage...
   19 # actually, this will all be overwritten when you fdisk & format, but
   20 # I thought it educational (and I used it in an earlier version)
   21 
   22       jmp   begin           # EB 2A
   23       nop                   # 90 as per normal
   24       .ascii  " DOSEMU "    # 8-byte system id
   25 
   26 # the actual boot code
   27 
   28       .org   0x3e
   29 begin:
   30       movw  $0x7c0,%ax           # boot record location
   31       pushw %ax
   32       popw  %ds
   33       movw  $message_offset, %si
   34       movw  $message_length, %cx
   35 
   36       movb  $0x0e, %ah           # BIOS write teletype
   37       xorw  %bx, %bx
   38 
   39 cont1:
   40       lodsb
   41       int   $0x10
   42       loop  cont1
   43 
   44       movb  $0,%ah               # BIOS read next keyboard character
   45       int   $0x16
   46 
   47       # exit dosemu
   48       movw    $0xffff, %ax
   49       int     $0xe6
   50 
   51 beg_message:
   52       .byte    0xd,0xa           # carriage return, line feed
   53       .byte    0xd,0xa
   54       .ascii   "         the Linux DOS Emulator, 4/1/93"
   55       .byte    0xd,0xa
   56       .ascii   "             Version 0.49"
   57       .byte    0xd,0xa
   58       .byte    0xd,0xa
   59       .ascii   "         Robert Sanders"
   60       .byte    0xd,0xa
   61       .ascii   "         gt8134b@prism.gatech.edu"
   62       .byte    0xd,0xa
   63       .byte    0xd,0xa
   64       .ascii   "    See README.first for instructions"
   65       .byte    0xd,0xa
   66       .byte    0xd,0xa
   67       .ascii   "    press any key to return to Linux...\r\n"
   68 end_message:
   69 
   70 message_offset    =      beg_message - head
   71 message_length    =      end_message - beg_message
   72 
   73     .globl  boot_sect_end
   74 boot_sect_end:
   75 
   76 #ifdef __ELF__
   77 .section .note.GNU-stack,"",%progbits
   78 #endif