Multitasking

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
piranha

Re:Multitasking

Post by piranha »

how do you print them? I am not too good with assembly
User avatar
ces_mohab
Member
Member
Posts: 77
Joined: Wed Oct 18, 2006 3:08 am

Re:Multitasking

Post by ces_mohab »

you notice that before iret these 5 variables are pushed so declare a c function having 5 parameters;

Code: Select all

void print(unsigned x1,unsigned x2...)
{
      //print them
}
and simply call this function using call _print
To write an OS you need 2 minds one for coding and other for debugging.
User avatar
ces_mohab
Member
Member
Posts: 77
Joined: Wed Oct 18, 2006 3:08 am

Re:Multitasking

Post by ces_mohab »

Oh I forgot take care of order
get the order from intel manual
::)
To write an OS you need 2 minds one for coding and other for debugging.
piranha

Re:Multitasking

Post by piranha »

ok, thanks!
I got it working!
Post Reply