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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [adventure/] [pc.c] - Rev 246

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

/* Use this to compile adv on a PC */
#include <stdio.h>
#include <stdint.h>
 
 
int puts(const char *string){
    while(*string){
        /* Implicit CR with every NL as usual */
        if(*string == '\n'){
            putchar('\r');
        }
        putchar(*string++);
    }
    return 0;
}
 
void po_num(uint32_t num){
    printf("%d", num);
}
 

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.