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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [adventure/] [pc.c] - Blame information for rev 192

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

Line No. Rev Author Line
1 90 ja_rd
/* Use this to compile adv on a PC */
2
#include <stdio.h>
3
#include <stdint.h>
4
 
5
 
6
int puts(const char *string){
7
    while(*string){
8
        /* Implicit CR with every NL as usual */
9
        if(*string == '\n'){
10
            putchar('\r');
11
        }
12
        putchar(*string++);
13
    }
14
    return 0;
15
}
16
 
17
void po_num(uint32_t num){
18
    printf("%d", num);
19
}

powered by: WebSVN 2.1.0

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