Skip to content

Instantly share code, notes, and snippets.

Eleni Maria Stea hikiko

Block or report user

Report or block hikiko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hikiko
hikiko / palshow.asm
Created Sep 29, 2019
DOS/asm: Showing the default palette
View palshow.asm
bits 16
; DOS loads COM programs at offset 100h (256) of the program segment
; therefore we need to let the assembler know, that everything should
; start from address 100h
org 100h
; video bios (10h) call 00h: set video mode
; ah: 00h, al: video mode number
mov ax, 13h ; mode 13h (320x200 8bpp)
int 10h
@hikiko
hikiko / palset.asm
Created Sep 29, 2019
Asm/DOS: setting custom palette
View palset.asm
; vi:filetype=nasm:
bits 16
; DOS loads COM programs at offset 100h (256) of the program segment
; therefore we need to let the assembler know, that everything should
; start from address 100h
org 100h
; video bios (10h) call 00h: set video mode
; ah: 00h, al: video mode number
mov ax, 13h ; mode 13h (320x200 8bpp)
@hikiko
hikiko / Makefile
Created Sep 29, 2019
Makefile for dosbox asm (nasm)
View Makefile
test.com: test.asm
%.com: %.asm
nasm -o $@ -f bin $<
.PHONY: clean
clean:
rm -f test.com
@hikiko
hikiko / main.rs
Created Sep 15, 2019
my helloworld in Rust (not proud)
View main.rs
extern crate sdl2;
extern crate gl;
extern crate image;
use sdl2::video::GLProfile;
use gl::types::*;
use image::GenericImageView;
static WIN_W : u32 = 800;
static WIN_H : u32 = 800;
@hikiko
hikiko / helloworld.asm
Last active Jul 26, 2019
ASM helloworld (nasm)
View helloworld.asm
;32bit x86 code
[bits 32]
[section .text]
global _start
_start:
;linux specific
;interrupt 80hex for system calls
View nasm Makefile
obj = helloworld.o
bin = helloworld
$(bin): $(obj)
ld -m elf_i386 -o $@ $(obj)
%.o: %.asm
nasm -o $@ -f elf32 $<
.PHONY: clean
@hikiko
hikiko / checkerboard.shader_test.glsl
Created May 29, 2019
vkrunner test that generates a checkerboard pattern
View checkerboard.shader_test.glsl
[require]
fbsize 800 600
[vertex shader passthrough]
[fragment shader]
#version 450
float checkerboard(in vec2 uv)
{
vec2 pos = floor(uv);
@hikiko
hikiko / plasma.shader_test.glsl
Created May 6, 2019
A vkrunner shader test that renders a plasma
View plasma.shader_test.glsl
[require]
fbsize 800 600
[vertex shader passthrough]
[fragment shader]
#version 450
layout(location = 0) out vec4 out_color;
@hikiko
hikiko / tunnel.shader_test.glsl
Created May 6, 2019
A shader test for vkrunner that draws a voronoi tunnel.
View tunnel.shader_test.glsl
[require]
fbsize 800 600
[vertex shader passthrough]
[fragment shader]
#version 450
layout(location = 0) out vec4 out_color;
@hikiko
hikiko / mushroom.shader_test.glsl
Created May 6, 2019
A vkrunner compatible shader_test that draws a field of mushrooms by performing ray marching in distance fields. (WIP)
View mushroom.shader_test.glsl
[require]
fbsize 800 600
[vertex shader passthrough]
[fragment shader]
#version 450
layout(location = 0) out vec4 out_color;
You can’t perform that action at this time.