This file contains hidden or 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 <signal.h> | |
| #include <inttypes.h> | |
| #include <string.h> | |
| #include <lightmodbus/master.h> | |
| #include <pthread.h> | |
| ModbusMaster master; | |
| pthread_t pt; |
This file contains hidden or 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
| all: | |
| gcc -o plague plague.c -lSDL -lpthread -lm -Wall |
This file contains hidden or 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 <sys/time.h> | |
| typedef struct | |
| { | |
| int x, y; | |
| void *parent; | |
| char c; |
This file contains hidden or 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 <time.h> | |
| #include <string.h> | |
| #define VERSION "v0.5" | |
| typedef struct | |
| { | |
| int x, y; |
This file contains hidden or 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 <time.h> | |
| #define ROMCNT 20 | |
| unsigned char roms[ROMCNT] = {0}; | |
| unsigned char active[ROMCNT] = {1, 1, 1, 1}; | |
| int bitcnt = 0; | |
| char getbit( ) |
This file contains hidden or 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
| [org 0x7c00] | |
| [bits 16] | |
| [map all thief.map] | |
| ;Stack init | |
| mov bp, 0xffff | |
| mov sp, bp | |
| ;Display initial interrupt address | |
| mov bx, [intnum*4+2] |
This file contains hidden or 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
| [org 0x7c00] | |
| [bits 16] | |
| ;Stack setup | |
| mov bp, 0xfffe | |
| mov sp, bp | |
| ;Switch into mode 13h | |
| mov ah, 0x00 | |
| mov al, 0x13 |
This file contains hidden or 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
| [org 0x7c00] | |
| [bits 16] | |
| ;Stack setup | |
| mov bp, 0xfffe | |
| mov sp, bp | |
| ;Switch into mode 13h | |
| mov ah, 0x00 | |
| mov al, 0x13 |
This file contains hidden or 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 "fload.h" | |
| #define MAX_FILE_COUNT 256 | |
| static FILE *files[MAX_FILE_COUNT] = {0}; | |
| static int fcount = 0; | |
| //Queues specific file for loading |
This file contains hidden or 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 <stdlib.h> | |
| #include <stdio.h> | |
| #include <time.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| const char *vowels = "euioay"; | |
| const char *consonants = "wrtpsdfghjklzxcvbnm"; | |
| int main( int argc, char **argv ) |