Memory-Write; Memory-Execute - Commodore 1541 User Manual

Disk drive
Hide thumbs Also See for 1541:
Table of Contents

Advertisement

MEMORY-WRITE
The MEMORY-WRITE command allows you to write up to 34 bytes at a time in
to the disk controller's memory. The MEMORY-EXECUTE and USER commands
can be used to run this code.
FORMAT FOR MEMORY-WRITE:
PRINT#file#, "M-W" CHR$(low address byte) CHR$(high address byte)
CHR$(#-of-characters) byte data
PROGRAM TO WRITE AN "RTS" TO DISK:
^^
/initialize disk first
10
OPEN8,8,15,'T'<
20
PRINT#8,"M - W"CHR$(0)CHR$(3)CHR$(l)CHR$(96)
30
PRINT#8,"M-E"CHR$(O)CHR$(3)
40
CLOSE8
MEMORY-EXECUTE
Any routine in the DOS memory, RAM or ROM, can be executed with the
MEMORY-EXECUTE command.
FORMAT FOR MEMORY-EXECUTE:
PRINT#file#, "M-E" CHR$(low address byte) CHR$(high byte)
See line 30 above for an example.
46

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents