Article View: comp.sys.intel
Article #449386 Assembler
From: Timothy David Roy
Date: Thu, 03 May 1990 07:39
Date: Thu, 03 May 1990 07:39
40 lines
1605 bytes
1605 bytes
I hope that someone out there can help me with this. I am trying to write a
task switcher in 386 assembly using the protected mode. I am using Phar Lap's
compiler/linker/DOS extender for the job. If ANYONE can provide me with any
helpful hints, code samples etc. I would really appreciate it. My main
problem is creating/finding/using the GDT,LDT and TSS.
while (1)
{
printf("This is task 1\n");
switch();
}
while (1)
{
printf("This is task 2\n");
switch();
}
while (1)
{
printf("This is task 3\n");
switch();
}
This is what I would like to do, have three C task that call a task
switcher written in assembly. So I would end up with output like
This is task 1
This is task 2
This is task 3
This is task 1
This is task 2
etc.
Any help will be gratefully accepted. Please email so I don't waste anymore
bandwidth.
--
Tim Roy | Programming-n: The process of turning your input
troy@undergrad.cs.ubc.ca or | into error messages v.t. Much like banging your
mindlink!a1059@van-bc.uucp | head against the wall but less rewarding.
Technical Details
Message-ID:
<1990May3.073932.15616@undergrad.cs.ubc.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!undergrad.cs.ubc.ca!troyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!undergrad.cs.ubc.ca!troy From: troy@undergrad.cs.ubc.ca (Timothy David Roy) Newsgroups: comp.sys.intel Subject: 386 Assembler Message-ID: <1990May3.073932.15616@undergrad.cs.ubc.ca> Date: 3 May 90 07:39:32 GMT Sender: news@undergrad.cs.ubc.ca (Usenet News) Reply-To: troy@a5 (OLVBasZeMR8gI) Organization: none Lines: 40