Hardware Reference
In-Depth Information
Figure 1.19 Memory map for the first 1 MB of a PC memory
address$ = "&H" +address$
address = VAL(address$)
INPUT "Number of bytes to display "; number
PRINT
PRINT "Address", "Byte"
PRINT " (hex)","(hex) "
PRINT
FOR1%=0TOnumber - 1
v = PEEK(address + i%)
PRINTHEX$(address+ i%), HEX$(v)
NEXT i%
PRINT
END
This
simple
QuickBASIC
program
prompts
the
user
for
a
start
address
(expressed in hexadecimal) and the number of bytes to display.
A typical
Search WWH ::




Custom Search