C type | Intel data type | Assembly suffix | Bytes |
---|---|---|---|
char | Byte | b | 1 |
short | Word | w | 2 |
int | Double word | l | 4 |
long | Quad word | q | 8 |
char * | Quad word | q | 8 |
float | Single precision | s | 4 |
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 <stdint.h> | |
typedef struct { | |
char a; | |
long b; | |
char c; | |
} Struct; | |
int main(int argc, char const *argv[]) |
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
pi@raspberrypi ~ $ cat /proc/cpuinfo | |
Processor : ARMv6-compatible processor rev 7 (v6l) | |
BogoMIPS : 697.95 | |
Features : swp half thumb fastmult vfp edsp java tls | |
CPU implementer : 0x41 | |
CPU architecture: 7 | |
CPU variant : 0x0 | |
CPU part : 0xb76 | |
CPU revision : 7 |
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> | |
void dump(unsigned int i) { | |
printf("%#08x = %d\n", i, i); | |
} | |
/* Declarations of functions implementing operations bis and bic */ | |
int bis(int x, int m) { | |
return x | m; | |
} |
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
fn foo1() { | |
let foo: Option<i32> = Some(1234); | |
println!("{}", foo.unwrap_or(4321)); | |
let bar = foo; | |
} | |
fn foo2() { | |
let foo: Option<String> = Some("1234".to_string()); | |
println!("{}", foo.unwrap_or("4321".to_string())); |
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
const std = @import("std"); | |
const fs = std.fs; | |
const warn = std.debug.warn; | |
pub fn main() !void { | |
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); | |
defer arena.deinit(); | |
const allocator = &arena.allocator; | |
const cwd = try fs.cwd().openDir(".", fs.Dir.OpenDirOptions{ |
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
import os | |
import streams | |
import system | |
import tables | |
var data: array[30_000, byte] | |
var dataPointer: int = 0 | |
var instructions: seq[char] | |
var instructionPointer: int = 0 |
- mlox - Analyzes and sorts your plugin load order.
- Official Plugins - Official plugins released by Bethesda exclusively for the PC version of Morrowind. Helm of Tohan was originally released online as a free pre-order exclusive, while the rest were published by Bethesda on their website.
- Morrowind Optimization Patch - Improves performance and fixes some mesh errors.
- Morrowind Code Patch - Fixes and improves various things (CTDs, save corruption etc.) in the Morrowind executable that can't be fixed with mods.
- Patch for Purists - Tons of bug fixes that aren't in the official patches.
- Expansion Delay - Fixes Bethesda's overly enthusiastic expansion hooks by delaying the Dark Brotherhood attacks and limiti
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
static void SetObject(object o) { } | |
void Main() | |
{ | |
// Assignment compatibility. | |
string str = "test"; | |
// An object of a more derived type is assigned to an object of a less derived type. | |
object obj = str; | |
// Covariance. |