mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-26 10:49:17 +00:00
18 lines
263 B
Plaintext
18 lines
263 B
Plaintext
|
|
||
|
const __sfr __at (0x0) command;
|
||
|
__sfr __at (0x0) dac;
|
||
|
|
||
|
#define HALT __asm halt __endasm;
|
||
|
|
||
|
// press "2" or higher to activate...
|
||
|
|
||
|
void main() {
|
||
|
char i;
|
||
|
char j;
|
||
|
if (command == 0) HALT;
|
||
|
for (i=0; i<255; i++) {
|
||
|
for (j=0; j<i; j++) dac=j^i;
|
||
|
}
|
||
|
HALT;
|
||
|
}
|