EasyManua.ls Logo

Commodore 1570 - Page 86

Commodore 1570
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ALTERNATE FORMAT:
PRINT#15,"M-E"CHR$«address)CHR$(>address)
EXAMPLE:
Here
is
a MEMORY-EXECUTE command that does absolutely nothing. The first
instruction it executes is an RTS, which ends the command:
PRINT#15, "M-E"CHR$(179)CHR$(242)
A more plausible use for this command would be to artificially trigger
an
error message.
Don't forget to check the error channel, or you'll miss the message:
PRINT#15,"M-E"CHR$(201)CHR$(239)
However, most uses require intimate knowledge
of
the inner workings of the DOS, and
preliminary setup with other commands, such
as
MEMORY-WRITE.
BLOCK-EXECUTE
This rarely-used command will load a sector containing a machine language routine
into a memory buffer from diskette, and execute it from the first location within the
buffer, until a RETURN from Subroutine (RTS) instruction ends the command.
FORMAT FOR THE BLOCK-EXECUTE COMMAND:
PRINT#15,"B-E:";channel #;drive #;track #;sector #
where "channel
#"
is
the channel number specified when the
file
into which the block
will be loaded was opened, "drive
#"
is
the drive number, and "track
#"
and "sector
#"
are respectively the track and sector numbers containing the desired block
of
data to
be loaded into the file buffer and executed there.
ALTERNATE FORMATS:
PRINT#15, "B-E:";channel #;drive #;track #;sector #
PRINT#15, "B-E:channel #,drive
#,track
#,sector
#"
78

Related product manuals