meithecatte / 2klinux Goto Github PK
View Code? Open in Web Editor NEWExperiments in bootstrapping from bare-metal
Experiments in bootstrapping from bare-metal
I tried this in Ubuntu 18.04 with nasm
:
$ ./build.sh
Assembling stage0... stage0.s:242: error: mismatch in operand sizes
stage0.s:256: error: mismatch in operand sizes
stage0.s:359: error: mismatch in operand sizes
The following patch fixes it:
diff --git a/stage0.s b/stage0.s
index 80a7ac7..5e0be4a 100644
--- a/stage0.s
+++ b/stage0.s
@@ -239,7 +239,7 @@ FindFile:
cmp al, byte[di]
jne short .nomatch
inc di
- loop short .cmploop
+ loop .cmploop
popa
; We have a match! Set LENGTH and load the first cluster.
@@ -253,7 +253,7 @@ FindFile:
popa
.next:
add si, DirEntrySize
- loop short .loop
+ loop .loop
; Load next cluster of the directory and start from the beginning
push di
call near ReadNextCluster
@@ -356,7 +356,7 @@ PrintText:
PrintTextLength:
lodsb
call near PrintChar
- loop short PrintTextLength
+ loop PrintTextLength
ret
StageZeroFilename:
2klinux
could be an alternative path to this bootstrapping activity, I'm providing it here for adding to docs or contacting:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.