sebmaster / bootloader-game Goto Github PK
View Code? Open in Web Editor NEWa game in the 512 bytes of a bootloader
License: MIT License
a game in the 512 bytes of a bootloader
License: MIT License
mkdir -p Kernel/Linux
jwasm -Zne -q -elf -c -Fw"Kernel/Linux/bootloader.asm.err" -Fo"Kernel/Linux/bootloader.obj" "Kernel/bootloader.asm"
Kernel/bootloader.asm : Warning A4262: ELF GNU extensions (8/16-bit relocations) used
g++ -m32 -nostdlib -masm=intel -s -Os -ffreestanding -Wall -Wextra -fno-exceptions -fno-rtti -o Kernel/Linux/floppy.img Kernel/stage1.cpp Kernel/Linux/bootloader.obj -T linker.ld
Kernel/stage1.cpp: In function ‘void PrintChar(char)’:
Kernel/stage1.cpp:19:8: error: expected ‘(’ before ‘{’ token
19 | __asm {
| ^
| (
Kernel/stage1.cpp:20:3: error: ‘mov’ was not declared in this scope
20 | mov AH, 0x0A;
| ^~~
Kernel/stage1.cpp:21:6: error: expected ‘;’ before ‘AL’
21 | mov AL, c;
| ^~~
| ;
Kernel/stage1.cpp:22:6: error: expected ‘;’ before ‘CX’
22 | mov CX, 1;
| ^~~
| ;
Kernel/stage1.cpp:23:7: error: expected unqualified-id before numeric constant
23 | int 0x10;
| ^~~~
Kernel/stage1.cpp:18:28: warning: unused parameter ‘c’ [-Wunused-parameter]
18 | inline void PrintChar(char c) {
| ~~~~~^
Kernel/stage1.cpp: In function ‘char* ReadSector(int, int)’:
Kernel/stage1.cpp:31:8: error: expected ‘(’ before ‘{’ token
31 | __asm {
| ^
| (
Kernel/stage1.cpp:32:3: error: ‘mov’ was not declared in this scope
32 | mov SI, LBAPacket;
| ^~~
Kernel/stage1.cpp:33:6: error: expected ‘;’ before ‘AH’
33 | mov AH, 0x42;
| ^~~
| ;
Kernel/stage1.cpp:34:6: error: expected ‘;’ before ‘DL’
34 | mov DL, 0x80;
| ^~~
| ;
Kernel/stage1.cpp:35:7: error: expected unqualified-id before numeric constant
35 | int 0x13;
| ^~~~
make: *** [Makefile:10: bios] Error 1
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.