Article View: alt.comp.lang.learn.c-c++
Article #791Re: How can I write to a PC port through dos
From: Lawrence Kirby
Date: Mon, 28 Dec 1998 00:00
Date: Mon, 28 Dec 1998 00:00
27 lines
2218 bytes
2218 bytes
In article <3686F719.327E6798@ipns.com> mikeyyou@suck.ass "James Connell" writes: >actually DOS has nothing to do with it! Quite the opposite, knowing that you are programming in a DOS environment is critical for any correct answer for this problem. >the Intel prossor has an in and >an out instruction to write a byte or word (also strings) to one of 64K >IO ports pointed to by the DX register ( or by an 'Immediate' operand >for the first 256). However most of the better OSs arrange for these instructions to be invalid (i.e. cause exceptions) for user level code. And of course even if you can access hardware directly doing so may clash with the OSs own drivers. >while not opsys dependant it is system dependant. The question is fundamentally opsys dependent, it *cannot* be answered other than with respect to a specific OS and even specific environment within that OS (user level code, device driver etc.) -- ----------------------------------------- Lawrence Kirby | fred@genesis.demon.co.uk Wilts, England | 70734.126@compuserve.com -----------------------------------------
Technical Details
Message-ID:
<914876095snz@genesis.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<914778641.26356.0.nnrp-12.c2dea518@news.demon.co.uk> <914788363snz@genesis.demon.co.uk> <3686F719.327E6798@ipns.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,3e22ec85252b9f7c X-Google-Attributes: gid1014db,public X-Google-Thread: 114592,3e22ec85252b9f7c X-Google-Attributes: gid114592,public X-Google-Thread: f9822,3e22ec85252b9f7c X-Google-Attributes: gidf9822,public X-Google-Thread: fdcad,3e22ec85252b9f7c X-Google-Attributes: gidfdcad,public X-Google-Thread: f58d1,3e22ec85252b9f7c X-Google-Attributes: gidf58d1,public From: fred@genesis.demon.co.uk (Lawrence Kirby) Subject: Re: How can I write to a PC port through dos Date: 1998/12/28 Message-ID: <914876095snz@genesis.demon.co.uk> X-Deja-AN: 426558519 References: <914778641.26356.0.nnrp-12.c2dea518@news.demon.co.uk> <914788363snz@genesis.demon.co.uk> <3686F719.327E6798@ipns.com> X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!genesis.demon.co.uk X-Trace: mail2news.demon.co.uk 914880981 mail2news:15832 mail2news mail2news.demon.co.uk Organization: none Reply-To: fred@genesis.demon.co.uk Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c,fr.comp.lang.c,fr.comp.lang.c++,han.comp.lang.c