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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [dskchk2/] [dskchk2/] [biolib.c] - Rev 319

Go to most recent revision | Compare with Previous | Blame | View Log

/*
 * biolib.c -- basic I/O library
 */
 
 
#include "biolib.h"
 
 
char getc(void) {
  unsigned int *base;
  char c;
 
  base = (unsigned int *) 0xF0300000;
  while ((*(base + 0) & 1) == 0) ;
  c = *(base + 1);
  return c;
}
 
 
void putc(char c) {
  unsigned int *base;
 
  base = (unsigned int *) 0xF0300000;
  while ((*(base + 2) & 1) == 0) ;
  *(base + 3) = c;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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