Function | Address | Vector | Description |
---|---|---|---|
SAVE | FFD8 | 0332 | Save memory to a device |
This routine saves a section of memory to a device.
To use, you first need to call SETLFS to set the device to save to. Then SETNAM must be called to set the filename.
Finally you store the start address in 2 bytes of zero page memory, set X & Y to point to the address immediately after the data to save, and A to the offset within zeropage where the start address was stored.
Any errors are reported via the READST routine.
Example:
Note: FREKZP (0x00FB) in this example is a 4 byte block of zeropage memory unused by Basic or Kernal and is available for user code.