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

Subversion Repositories mblite

[/] [mblite/] [trunk/] [sw/] [testbench/] [stdio.h] - Rev 2

Compare with Previous | Blame | View Log

/**
   Standard I/O adresses
*/
 
void outbyte(char c);
char inbyte();
 
void outbyte(char c)
{
    volatile char *COUT = (char *) 0xFFFFFFC0;
    *COUT = c;
}
 
char inbyte()
{
    volatile char *CIN = (char *) 0xFFFFFFC0;
    return (char) *CIN;
}
 

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.