[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Low-level vs. High-level programming
"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. 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.