summaryrefslogtreecommitdiffstats
path: root/sw-old/z80/tests/ram/main.c
blob: 581072b5b422613d3e5e355ca2d4f9fb64bf042b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
void main(void)
{
    unsigned char j;
    unsigned char *mem;
    
    j = 0;
    mem = (unsigned char *) 0x8200; // somwhere in ram

    while (1) {
        *mem = j++;
    }
}