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 RORTH_STDDEF_H | |
#define RORTH_STDDEF_H | |
#ifndef NULL | |
#ifdef __cplusplus | |
#define NULL 0 | |
#else | |
#define NULL ((void *)0) | |
#endif | |
#endif |
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 <unistd.h> | |
#include <dirent.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <sys/sysinfo.h> | |
#include <sys/types.h> | |
#include <pwd.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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#define NUM_TASKS 4 // number of tasks | |
// structure to represent a task | |
typedef struct task { | |
int id; // task id | |
int burstTime; // time required to complete the task |
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
; ata_lba_write - Write a sector to an ATA device using LBA mode | |
; | |
; @device: ATA device (0 for primary, 1 for secondary) | |
; @lba: LBA address of the sector to write | |
; @buffer: pointer to the buffer containing the data to write | |
; | |
; Returns: CF set on error, CF clear on success | |
global ata_lba_write |
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 <unistd.h> | |
#define TIME_SLICE 5 // time slice for each task | |
// structure to represent a task | |
typedef struct task { | |
int id; // task id | |
int burstTime; // time required to complete the task |
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 <unistd.h> | |
#define QUANTUM 4 // time slice in milliseconds | |
// structure to represent a task | |
typedef struct task { | |
int id; // task id | |
int burstTime; // time required to complete the task |
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 <memory.h> | |
#include <stdbool.h> | |
#define MIN_CELLS 10 | |
#define MAX_CELLS 25 | |
#define COINS 6 |
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
ORG 0x7c00 | |
[BITS 16] | |
CODE_SEG equ gdt_code - gdt_start | |
DATA_SEG equ gdt_data - gdt_start | |
jmp short start | |
nop |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Comment: This is a revocation certificate | |
iQG2BCABCgAgFiEEY6ET8KoTlAiufrv67OUQBwXw+zcFAmL3+xMCHQIACgkQ7OUQ | |
BwXw+zeQgwv+Jn4qGE1qp241R8cO7/nEfsNruizBtralAnBrlvYVd8fpoee3K685 | |
49IONJB/pwYJiuRlEdvKv29W8arRPYwjAZQA36Mc/Ex0InPAB9oJUTBYTZ+JILon | |
6bRPF5s1KD3FsLigjzNYdRPlg0enSnr06WsVP+PtAphwxbnyOuE1TLdabN+HeHFS | |
n3A/HRzt+KyiEqQBfTA3wdHDy8mXcHIWMBUClHYuHz3cfAO2oN1Dj/AWF/BFaH6k | |
p/dBCaFcUJxEYLjfwUqXGn3gKEKZCU/bGukYOH+/qAGSPKYXr3IDO6AmUf6zDUg/ | |
vsgjy1Rp8ieSarWs/wpWw8RptIct1/GaypHDbQq1hsObpgZ91zJrDvgFK7XFn72B |
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> | |
typedef enum | |
{ | |
STACK_INT, | |
STACK_CHAR, | |
STACK_UINT64 | |
} DataType; |
NewerOlder