This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; http://www.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf | |
; Implementation of a 32-bit KISS generator which uses no multiply instructions | |
.zp | |
_tmp .ds 4 | |
_x .ds 4 | |
_y .ds 4 | |
_z .ds 4 | |
_w .ds 4 | |
_n .ds 4 | |
_c .ds 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// TODO :: 3. Clean up | |
//// 4. Events | |
//// 5. Create a colormap | |
//// 6. glx ? | |
#ifdef DEBUG | |
#include <sys/socket.h> | |
#include <sys/ioctl.h> | |
#include <sys/un.h> | |
#include <sys/select.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lda <__radius_0 | |
bpl .l0 | |
inc <__radius_0+1 | |
.l0: | |
eor #128 | |
sta <__radius_0 | |
lda <__radius_1 | |
bpl .l1 | |
inc <__radius_1+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <vector> | |
typedef struct { | |
unsigned int x; | |
unsigned int y; | |
} Coordinate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ARG1(a) (a) | |
#define ARG2(a,b) ( (a) | ((b) << 8) ) | |
#define ARG3(a,b,c) ( (a) | ((b) << 8) | ((c) << 16) ) | |
#define INDIRECT(c) ( (c) | 0x80 ) | |
enum | |
{ | |
ACCUMULATOR, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Dump of file build\Win32\Debug\pce.dll | |
File Type: DLL | |
Section contains the following exports for pce.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define ARRAY_DECLARE(type) \ | |
typedef struct \ | |
{ \ | |
type *buffer; \ | |
size_t capacity; \ | |
size_t size; \ | |
} type##_array; \ | |
void type##_array_create(type##_array* container); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpr 0: ff | |
mpr 1: f8 | |
mpr 2: 80 | |
mpr 3: 81 | |
mpr 4: 82 | |
mpr 5: 83 | |
mpr 6: 77 | |
mpr 7: 00 | |
5439: ; start of vram "print" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NETWORK_H | |
#define NETWORK_H | |
#include "Config.h" | |
// [todo] enum for error? | |
class Network | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include "DataFlash.h" | |
DataFlash dataflash; | |
uint8_t currentSector; | |
void setup() | |
{ | |
uint8_t status; | |
DataFlash::ID id; |