Skip to content

Instantly share code, notes, and snippets.

View amanuel2's full-sized avatar

Aman amanuel2

View GitHub Profile
#ifndef _LIB_LIBCPP_STKL_PRINTKC_
#define _LIB_LIBCPP_STKL_PRINTKC_
#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
/*
* @namespace stkl:
* Standard Kernel Library
/**
* Bone Lang.
* BoneLang <>{}[]() Interpreter.
* @author Amanuel Bogale
* @date 10/12/16
**/
#include <iostream>
#include <string>
#include <algorithm>
#include <stdarg.h>
/*
Rule of three.
If you have a class
where its member class
is requesting heap space,
it always needs a copy contructor
, assignment operator , and
a destructor
Derived From : https://www.youtube.com/watch?v=F-7Rpt2D-zo
import java.util.Scanner;
/****************************************
* Amanuel Bogale
* 9/28/16
* GradeCalc
* Inputs 4 grades and as a result
* finds the average of all grades
****************************************/
import java.util.Scanner;
/****************************************
* Amanuel Bogale
* 9/28/16
* GradeCalc
* Inputs 4 grades and as a result
* finds the average of all grades
****************************************/
compile_:
ghost-i686-elf-tools/bin/i686-elf-gcc -g -m32 -c -ffreestanding -o kernel.o kernel.c -lgcc
ghost-i686-elf-tools/bin/i686-elf-ld -melf_i386 -T linker.ld -nostdlib --nmagic -o kernel.elf kernel.o
ghost-i686-elf-tools/bin/i686-elf-objcopy -O binary kernel.elf kernel.bin
"NASM/nasm.exe" boot1.asm -o boot1.o
ghost-i686-elf-tools/bin/i686-elf-ld -melf_i386 -Ttext=0x7c00 -nostdlib --nmagic -o boot.elf boot.o
ghost-i686-elf-tools/bin/i686-elf-objcopy -O binary boot.elf boot.bin
"PartyCopy/dd.exe" if=/dev/zero of=disk.img bs=512 count=2880
"PartyCopy/dd.exe" if=boot.bin of=disk.img bs=512 conv=notrunc
"PartyCopy/dd.exe" if=kernel.bin of=disk.img bs=512 seek=1 conv=notrunc
;----------------------------------------------;
;
; The BoneOS Bootloader STDIO.h 32 BITS
; ------------------------------
;
;
; Contributors : @amanuel2
;
;
;----------------------------------------------;
;----------------------------------------------;
;
; The BoneOS Bootloader STDIO.h 32
; ------------------------------
;
;
; Contributors : @amanuel2
;
;
;----------------------------------------------;
;----------------------------------------------;
;
; The BoneOS Stage 1 Bootloader
; -----------------------------
;
;
; Contributors : @amanuel2
;
;
;----------------------------------------------;
;----------------------------------------------;
;
; The BoneOS Stage 2 Bootloader
; -----------------------------
;
;
; Contributors : @amanuel2
;
;
;----------------------------------------------;