
Well, I want to create a Python based OS. ¿How can I do it? ¿Has the kernel to be a Python interpreter?
Thanks!
Hey, what's the matter with you? I have asked a question, excuse me if my english is not as good as yours, Shakespeare, but I am learning this language.berkus wrote:No, start with learning to read.
If you want to nail some wood together, the best tool to use would be a hammer or maybe a nail-gun. You can try to use a tomato but even if you're very skilled a tomato isn't the right tool for the job and you'll probably get nowhere. A tomato is excellent for making pizzas though (nobody would make pizza with a hammer).arming wrote:Well, I want to create a Python based OS. How can I do it? Has the kernel to be a Python interpreter?
Code: Select all
;==============
; Macro Python
;==============
;_______________print_________________
macro print String{
local a
local Done
local ForEachChar
mov si,a
mov ah,0x0E ; for int 0x10: write chars in teletype mode
ForEachChar: ; begin loop
lodsb ; load al with what si points to, increment si
cmp al,0x00 ; if char is null...
je Done ; .. then break out of the loop
int 0x10 ; call interrupt 0x10 (BIOS: print char)
jmp ForEachChar ; jump back to beginning of loop
a db String,13,0
Done:
}
;_______________sys.exit_________________
macro sys.exit{
jmp $
}
Code: Select all
org 0x7C00
use16
include 'Python.inc'
print "Boot Python OS"
sys.exit
times 510-($-$$) db 0
dw 0xaa55