From f000d406809d8a7a0e71c388ebfb15d7564728e4 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 5 Oct 2017 12:17:37 +0200 Subject: Test units are now in their own folder 'z80_test', add programmer cli interface --- sw/z80_tests/ram/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sw/z80_tests/ram/main.c (limited to 'sw/z80_tests/ram/main.c') diff --git a/sw/z80_tests/ram/main.c b/sw/z80_tests/ram/main.c new file mode 100644 index 0000000..581072b --- /dev/null +++ b/sw/z80_tests/ram/main.c @@ -0,0 +1,13 @@ + +void main(void) +{ + unsigned char j; + unsigned char *mem; + + j = 0; + mem = (unsigned char *) 0x8200; // somwhere in ram + + while (1) { + *mem = j++; + } +} -- cgit v1.2.1