OpenCores
URL https://opencores.org/ocsvn/zet86/zet86/trunk

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [bios/] [rombios.c] - Diff between revs 27 and 34

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 27 Rev 34
Line 790... Line 790...
    jmp halt2_loop
    jmp halt2_loop
ASM_END
ASM_END
    }
    }
}
}
 
 
static char bios_svn_version_string[] = "$Revision: 1.2 $ $Date: 2008-10-04 23:11:53 $";
static char bios_svn_version_string[] = "$Revision: 1.3 $ $Date: 2008-10-13 00:24:30 $";
 
 
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// print_bios_banner
// print_bios_banner
//   displays a the bios version
//   displays a the bios version
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
Line 1110... Line 1110...
  mov  ds, bx
  mov  ds, bx
  push ax       ;; Save AX
  push ax       ;; Save AX
  push di       ;; Save DI
  push di       ;; Save DI
  ;; Push addr of ROM entry point
  ;; Push addr of ROM entry point
  push cx       ;; Push seg
  push cx       ;; Push seg
  push #0x0003  ;; Push offset
  ;; push #0x0003  ;; Push offset - not an 8086 valid operand
 
  mov ax, #0x0003
 
  push ax
 
 
  ;; Point ES:DI at "$PnP", which tells the ROM that we are a PnP BIOS.
  ;; Point ES:DI at "$PnP", which tells the ROM that we are a PnP BIOS.
  ;; That should stop it grabbing INT 19h; we will use its BEV instead.
  ;; That should stop it grabbing INT 19h; we will use its BEV instead.
  mov  ax, #0xf000
  mov  ax, #0xf000
  mov  es, ax
  mov  es, ax
Line 1268... Line 1270...
  mov  cx, #0xc000  ;; init vga bios
  mov  cx, #0xc000  ;; init vga bios
  mov  ax, #0xc780
  mov  ax, #0xc780
  call rom_scan
  call rom_scan
 
 
  call _print_bios_banner
  call _print_bios_banner
 
hlt
  call _init_boot_vectors
  call _init_boot_vectors
 
 
  mov  cx, #0xc800  ;; init option roms
  mov  cx, #0xc800  ;; init option roms
  mov  ax, #0xe000
  mov  ax, #0xe000
  call rom_scan
  call rom_scan

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.