Path: 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 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.