Skip to content

Use C++, a minimal operating system kernel that supports 32-bit.

License

Notifications You must be signed in to change notification settings

NotFlyLoongQaQ/miniNTKernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniNTKernel

Use C++, a minimal operating system kernel that supports 32-bit.

Make you bin file

your script head must is:

SECTION header vstart=0                     
    program_length  dd program_end          
    
    ;用户程序入口点
    code_entry      dw start                
                    dd section.code_1.start 
    realloc_tbl_len dw (header_end-code_1_segment)/4   
    code_1_segment  dd section.code_1.start ;[0x0c]
    code_2_segment  dd section.code_2.start ;[0x10]
    data_1_segment  dd section.data_1.start ;[0x14]
    data_2_segment  dd section.data_2.start ;[0x18]
    stack_segment   dd section.stack.start  ;[0x1c]
    
    header_end:  
    ; ---
    ; Your asm script
    ; ---

Function

If you want to use system call,you must include "system/lib/stdc++.h". And you can you C++ Function. Just add:

#include <system/lib/stdc++.h>
#include <system/lib/std.h>
using namespace std;
int main(){
    cout << "Hello World!" << endl;
    return 0;
}

About

Use C++, a minimal operating system kernel that supports 32-bit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published