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

Subversion Repositories z80soc

[/] [z80soc/] [trunk/] [V0.7.3/] [Software/] [C/] [testsys/] [o3s.c] - Blame information for rev 46

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 46 rrred
/*
2
 *  o3s.c
3
 *  XcodeProject
4
 *
5
 *  Created by Ronivon Costa on 11/7/10.
6
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
7
 *
8
 */
9
 
10
#include <o3s.h>
11
#include <z80soc.h>
12
#include <string.h>
13
 
14
void printlcd(short int pos, char s[]) {
15
        int i;
16
        int lcdmem = 0xffe0 + pos;
17
        for (i = 0;i < strlen(s); i++) {
18
                writeMemory(lcdmem+i,s[i]);
19
        }
20
}
21
 
22
unsigned char JoyStick(void) {
23
        __sfr __at JOYSTICK static JOY;
24
        return  JOY;
25
}
26
 
27
 

powered by: WebSVN 2.1.0

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