flat assembler
Message board for the users of flat assembler.

Index > OS Construction > MultiTasking

Author
Thread Post new topic Reply to topic
joachim_neu



Joined: 22 Dec 2003
Posts: 139
joachim_neu 11 Dec 2004, 10:43
hello,

has anyone implemented multitasking yet? how? i'm in FRM, so i can't use TSS. and now i'm searching an other method. my idea is, to set up a table in the memory, where the ss and sp and some other thing is saved, and then set up the int 0x08 software (0x00 hardware) to save the current values to the stack, go to the next entry, load ss and sp and then return to the programm. i've implemented it yet, but it only runs, if there's only the kernel-task. whenever i start a new task, it crashs. i think it's because the stack hasn't the return-adress. when the kernel-task stops, the interrupts goes to the next entry, but on the stack are no values, and so it jumps by iret into 0x0000:0x0000. and now i'd like to ask somethings:
1.: if the interrupt starts, it saves first the flags, then the segment and then the offset, right?
2.: how did you do this? have you an other idea?

mfg

JN!
Post 11 Dec 2004, 10:43
View user's profile Send private message Visit poster's website Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4 11 Dec 2004, 16:30
Take a look at the 512b compo winner, full multitasking in 512 bytes, may help ?.
http://512.decard.net/entries/
Its called "nanoos2.zip".

\\\\||////
(@@)
ASHLEY4.

Batteries not included, Some assembly required.
Post 11 Dec 2004, 16:30
View user's profile Send private message Reply with quote
joachim_neu



Joined: 22 Dec 2003
Posts: 139
joachim_neu 11 Dec 2004, 21:16
is it also in FRM?
Post 11 Dec 2004, 21:16
View user's profile Send private message Visit poster's website Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4 11 Dec 2004, 23:59
Realmode i think.

\\\\||////
(@@)
ASHLEY4.

Batteries not included, Some assembly required.
Post 11 Dec 2004, 23:59
View user's profile Send private message Reply with quote
joachim_neu



Joined: 22 Dec 2003
Posts: 139
joachim_neu 12 Dec 2004, 11:24
ok... i'll have a big look at it. but till now i didn't find the special code-part. who is the coder?
Post 12 Dec 2004, 11:24
View user's profile Send private message Visit poster's website Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4 12 Dec 2004, 15:04
KVP, he's usually on here: http://groups-beta.google.com/group/alt.os.development

\\\\||////
(@@)
ASHLEY4.

Batteries not included, Some assembly required.
Post 12 Dec 2004, 15:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.