1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
int p; extern int edata; extern int end; start() { int *s; asm ("lda #stack"); asm ("tcs"); for (s = &edata; s != &end; s++) *s = 0; main(); exit(0); }