These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.
Modern operating systems, booted inside Real
mode,
#!/bin/bash | |
# Process Loop | |
# Author: Mike Smullin <[email protected]> | |
# License: MIT | |
# Usage: | |
# | |
# ./loop node --debug app.js | |
# | |
# Ctrl+C Restarts | |
# Ctrl+\ Quits |
#!/usr/bin/env coffee | |
# | |
# install on ubuntu: | |
# sudo apt-get install automake autoconf libpcap-dev zlib1g-dev libboost-dev libcairo2-dev | |
# | |
# cd /tmp/ | |
# git clone --recursive -b tcpflow-1.4.4 [email protected]:simsong/tcpflow.git tcpflow/ | |
# cd tcpflow/ | |
# | |
# sh bootstrap.sh |
# A CoffeeScript implementation of RC4 | |
class ARC4 | |
i: 0 | |
j: 0 | |
psize: 256 | |
S: null | |
constructor: (key=null) -> | |
@S = new Buffer(@psize) | |
if key | |
@init key |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" help import | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list natnets | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showvminfo "sfs01" | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list dhcpservers | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" natnetwork stop -t NatNetwork | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" natnetwork start -t NatNetwork | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" dhcpserver add --netname xm_slc_routed --ip 172.16.2.1 --netmask 255.255.0.0 --lowerip 172.16.2.4 --upperip 172.16.2.254 --enable | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" dhcpserver modify --netname xm_slc_routed --ip 172.16.0.1 --netmask 255.255.0.0 --lowerip 172.16.0.4 --upperip 172.16.0.254 --enable | |
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" dhcpserver remove --netname xm_slc |
Que = new: -> | |
Q = [] | |
Q.then = (fn, args...) -> Q.push(-> args.push Q.next; fn.apply null, args); @ | |
Q.next = (err) -> Q.splice 0, Q.length-1 if err; Q.shift()?.apply null, arguments | |
Q.finally = (fn, args...) -> Q.push(-> fn.apply null, args); Q.next() | |
Q | |
# -- | |
Q = Que.new() |
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <[email protected]> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
#include <GL/glfw.h> | |
#include <iostream> | |
#define GLFW_INCLUDE_GLU | |
using namespace std; | |
int main() | |
{ |
eax = ebx # mov | |
eax = &ebx # lea | |
push eax | |
pop eax | |
eax++ # inc | |
eax-- # dec | |
eax += 1 # add | |
eax -= ebx # sub | |
eax = &d * &e # imul | |
# and so on with idev, and, or xor, not, neg, shl, shr, |
#include <stdio.h> | |
int example(int a, int b) { | |
return a + b + 3; | |
} | |
int main(void) { | |
printf("%i\n", example(1, 2)); | |
return 0; | |
} |