Skip to content

Instantly share code, notes, and snippets.

@resistcorp
resistcorp / decode8086_part1.jai
Last active March 22, 2023 08:33
Assignment for the first "Computer Enhance" course. Instruction Decoding on the 8086
#import "Basic";
#import "File";
main :: (){
args := get_command_line_arguments();
if(args.count < 2){
print_err("no file to decode");
print_err("args : %", args);
return;
}
@resistcorp
resistcorp / jai.sublime-build
Created December 30, 2022 23:53
A simple build system with error capturing and navigation
{
"cmd": ["jai", "$file"],
"selector" : "source.jai",
"file_regex" : "^(.*):(\\d+)\\,(\\d+)\\: Error\\: (.*)$"
}
@resistcorp
resistcorp / ClippedSprite.as
Created July 12, 2012 18:20 — forked from PrimaryFeather/ClippedSprite.as
Adds nesting to the Clipped Sprites extension in Starling see www.starling-framework.org // now compatible with the latest starling (as of 29 nov. 2012)
package starling.extensions
{
import flash.display3D.Context3D;
import flash.geom.Point;
import flash.geom.Rectangle;
import starling.core.RenderSupport;
import starling.core.Starling;
import starling.display.DisplayObject;
import starling.display.Sprite;