1. Low Level Mem Question

It seems to me there are too types of memory addresses.  I've seen both i=
n
Euphoria.

poke(1052, 13) -- "put" for lack of better term carriage return into
address 1052 (meaningless instruction)

peek(#417) get a byte from memory

Just for curiosity.  How are memory addressed referenced by byte?  Is it
strictly hexadecimal?  And what does the # sign signify in the second
example?  Now, these two addresses have special meaning.  I've also heard=

that other addresses have special meaning (such as screen memory, all
sorts).  Is there a list of these somewhere, online or in a text file? =

Thanks.

--Alan
 =

new topic     » topic index » view message » categorize

2. Re: Low Level Mem Question

Alan Tu wrote:

> It seems to me there are too types of memory addresses.  I've seen both in
> Euphoria.
>
> poke(1052, 13) -- "put" for lack of better term carriage return into
> address 1052 (meaningless instruction)
>
> peek(#417) get a byte from memory
>
> Just for curiosity.  How are memory addressed referenced by byte?  Is it
> strictly hexadecimal?  And what does the # sign signify in the second
> example?

The reference is by number, poke(255,13) is the same as poke(#FF,13)the # sign
means a hex number.

>  Now, these two addresses have special meaning.  I've also heard
> that other addresses have special meaning (such as screen memory, all
> sorts).  Is there a list of these somewhere, online or in a text file?
> Thanks.

Yes, there's a file named dosref34.exe on my ftp site which lists all sorts of
usefulDOS addresses and interrupt calls, etc. But it's large - about 300K.
Also remember that peeking is pretty safe, while poking is a dangerous game.

Hmm. there's a joke there somewhere.

Irv

http://www.mindspring.com/~mountains
ftp.mindspring.com/users/mountains/dosref34.exe

new topic     » goto parent     » topic index » view message » categorize

3. Re: Low Level Mem Question

Irv wrote:

>>>>>
The reference is by number, poke(255,13) is the same as poke(#FF,13)the #=

sign
means a hex number.
<<<<<

Yes, but how does that relate to the megs of memory I have.  Do the
addresses just start from 1.  (I know about conventional, upper, and
extended mem and their starting/ending positions.  These numbers are byte=
s,
right?

--Alan
 =

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu