T.R | Title | User | Personal Name | Date | Lines |
---|
1351.1 | Basically Peeking for You | FSTVAX::BROWN | | Tue Apr 19 1988 19:22 | 23 |
| > I HAVE TRYED PEEK 1000, PEEK1000, PEEK(1000), PEEK (1000)
ACCORDING TO THE AMIGA BASIC MANUAL THERE ARE SEVERAL TYPES OF PEEK
PEEK ---- RETURNS A ONE-BYTE INTEGER FROM MEMORY LOCATION ADDRESS
PEEKL --- RETURNS THE LONG-INTEGER WORD READ FROM MEMORY LOCATION
ADDRESS. This is the 32-bit value at the address
PEEKW --- RETURNS THE SHORT-INTEGER WORD FROM MEMORY LOCATION ADDRESS.
This is the 16-bit value at the address.
NOW TO ANSWER YOUR QUESTION:
IF YOU WERE IN AmigaBasic you would inter PEEK(1000).
I tryed this as Print Peek(1000). The responce was '0' .
I also tryed several other addresses the PEEK() function worked
fine.
I hope this helps..
Burt
|
1351.2 | functions don't output to screen | TIGER::JANZEN | Tom LMO2/O23 296-5421 | Wed Apr 20 1988 10:00 | 7 |
| The answer is that PEEK is a function, and doesn't have any output.
If you want to store the output of peel, do this:
MEMBYTE=PEEK(52345234)
or print it
PRINT PEEK(0)
Tom
|
1351.3 | too POOPED to PEEK | MEMORY::SOVIE | SSDD | Wed Apr 20 1988 12:35 | 10 |
|
Re: 1,2
Thanks, that was the problem...I didn't assign a variable to
the peeked location, Print Peek(1000) works as advertised
I have been trying to debug a hardware project and it was kinda
late.
Dean
|