[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Low-level vs. High-level programming



"Randy McLaughlin" <randy@nospam.com> wrote in
news:RFoJa.7756$mS2.5421@fe04.atl2.webusenet.com: 


> 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 truth is that your statement "If you can
> do it in asm you can do it in any language that is sufficiently
> complete." is not quite true.  Many computer languages do have
> limitations built into them. One good example is reentrant code, some
> can some can not. 
> 
>

POKEregisterlocation,value

If the register was located in decimal location 346 and Bit 6 set the
register on or off then use this command POKE346,63. Simple. You just
don't want memory protection and all the barriers Windows provides.
Otherwise, changing data in a special file that the OS accesses would
need to be made. 

Windows blocks direct access to memory for the sake of memory
protection. 

Hey, we done accessing to a port in BASIC for MANY years on a Commodore
64. You just have to hunt the sucker or have some file that tells where
the hardware is currently located at.