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 <string.h> | |
#include <limits.h> | |
#ifdef _WIN32 | |
#include <windows.h> | |
#else | |
#include <unistd.h> | |
#endif |
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
import argparse | |
import ast | |
import json | |
import os | |
from termcolor import colored | |
from typing import List, Dict | |
# Define colors for different priorities | |
COLORS = { |
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
#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 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 <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 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 <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 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
; 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 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 <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 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 <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 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 <string.h> | |
#include <memory.h> | |
#include <stdbool.h> | |
#define MIN_CELLS 10 | |
#define MAX_CELLS 25 | |
#define COINS 6 |
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] | |
CODE_SEG equ gdt_code - gdt_start | |
DATA_SEG equ gdt_data - gdt_start | |
jmp short start | |
nop |
NewerOlder