61h PK$SAVE save data
Input D register - Number of bytes to save.
X register - Source address.
Output - none -
Description Save D bytes from X at the current position in the current pack. Leaves counter after last byte saved if successful, if not, leaves the counter on the byte that failed.
Example Saves LENDATA bytes from address DATA
        LDD     #LENDATA        ; Length of data
        LDX     #DATA           ; Pointer to data
        OS      PK$SAVE
        BCS     ERROR           ; Report error
Errors 245 - write pack error
244 - write to read only pack
254 - ram pack full
194 - battery too low