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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [boot.c] - Diff between revs 88 and 200

Show entire file | Details | Blame | View Log

Rev 88 Rev 200
Line 10... Line 10...
#include "cpu.h"
#include "cpu.h"
#include "mmu.h"
#include "mmu.h"
#include "start.h"
#include "start.h"
 
 
 
 
void boot(int dskno) {
void boot(int dskno, Bool start) {
  Word capacity;
  Word capacity;
  Byte sig1, sig2;
  Byte sig1, sig2;
 
 
  capacity = dskcap(dskno);
  capacity = dskcap(dskno);
  if (capacity == 0) {
  if (capacity == 0) {
Line 40... Line 40...
   */
   */
  cpuSetReg(16, dskno);
  cpuSetReg(16, dskno);
  cpuSetReg(17, 0);
  cpuSetReg(17, 0);
  cpuSetReg(18, capacity);
  cpuSetReg(18, capacity);
  cpuSetPC(VIRT_BOOT);
  cpuSetPC(VIRT_BOOT);
 
  if (start) {
  cpuRun();
  cpuRun();
}
}
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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