Memory-Read; Memory-Execute; User; Memory-Read Command - Commodore 2031 User Manual

Hide thumbs Also See for 2031:
Table of Contents

Advertisement

The format "M-W"adl/adh/nc/data is illustrated in the following example.
Example:
"M-W"CHR$(00)CHR$(13)CHR$(4)CHR$(32)CHR$(0)CHR$(17)CHR$(96)
Writes four bytes to buffer 2 ($1200 or decimal 4608).
The byte pointed to by the address in the command string may be accessed with
this command. Variables from the DOS or the contents of the buffers may also
be read with this command. The M-R command changes the contents of the
error channel since it is used for transmitting the information to the computer.
The next GET# from the error channel (secondary address 15) transmits the
byte. An INPUT# should not be executed from the error channel after a
MEMORY-READ command until a DOS command other than one of the
MEMORY commands is executed.
The format "M-R"adl/adh is illustrated in the following example.
Example:
"M-R"CHR$(128)CHR$(0)
Accesses the byte located at ($0080 or decimal 128).
Subroutines in the DOS memory may be executed with this command. To
return to the DOS, terminate the subroutine with RTS($60).
The format "M-E"adl/adh is illustrated in the following example.
Example:
"M-E"CHR$(128)CHR$(49)
Requests the execution of code beginning at $3180.
This command provides a link to 6502 machine code according to a jump table
pointed to by the special user pointer. Refer to Table 3. The second character in
this command is used as an index to the table. The ASCII character 0 through 9
or A through 0 may be used. Zero sets the user pointer to a standard jump table
that contains links to special routines.

MEMORY-Read

Memory-Execute

USER

47

Advertisement

Table of Contents
loading

Table of Contents