[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Low-level vs. High-level programming
- Subject: Re: Low-level vs. High-level programming
- From: pausch@saaf.se (Paul Schlyter)
- Date: Tue, 24 Jun 2003 07:53:48 +0000 (UTC)
- Newsgroups: comp.sys.cbm, comp.sys.apple2, rec.games.video.classic, comp.os.cpm
- Organization: Svensk Amat|rAstronomisk F|rening
- References: <b3qo6h$5ar$1@barad-dur.nas.com> <RFoJa.7756$mS2.5421@fe04.atl2.webusenet.com> <bd6922$157j$1@merope.saaf.se> <NSFJa.2$uK1.0@fe05.atl2.webusenet.com>
- Xref: archiver1.google.com comp.sys.cbm:59258 comp.sys.apple2:31844 rec.games.video.classic:59372 comp.os.cpm:13531
In article <NSFJa.2$uK1.0@fe05.atl2.webusenet.com>,
Randy McLaughlin <randy@nospam.com> wrote:
> "Paul Schlyter" <pausch@saaf.se> wrote in message
> news:bd6922$157j$1@merope.saaf.se...
>> In article <RFoJa.7756$mS2.5421@fe04.atl2.webusenet.com>,
>> Randy McLaughlin <randy@nospam.com> wrote:
>>
>> > I would love to see someone control a port at a non-standard address in
>> > Basic, Fortran, Cobol, C, C++, etc without using extensions beyond the
>> > standard language.
>>
>> The problem with Basic here is that there are hardly any ANSI Basic
>> implementations....
>>
>> Anyway, doing this in C and C++ is quite trivial. Suppose we wanted
>> to read a character off the Apple II keyboard (address $C000) and
>> then tell the keyboard we'd read it by writing to $C010. In ANSI C
>> we would do like this:
> <snip>
>
> I never said it was memory mapped.
No, but you posted it in comp.sys.apple2, and the Apple II was memory
mapped....
> The point is that the poster that specified any computer programming
> language had to be able to do the same tasks as in asm is not
> necessarily true.
Well, there are certainly things you can do in asm which cannot be done
in other programming languages....
--
----------------------------------------------------------------
Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN
e-mail: pausch at stockholm dot bostream dot se
WWW: http://www.stjarnhimlen.se/
http://home.tiscali.se/pausch/