|5Dh||PK$RBYT||read a byte from pack|
|Input||- none -|
|Output||B register - byte read|
|Description|| Reads a byte from the current position
in the current pack into register B and increments pack counter by 1.
If an attempt is made to read past the end of the pack, the pack address in RAM will not reflect the counter address on the pack. No error will be generated. This should not be attempted.
A and X registers are preserved.
Reads COUNT bytes, or until a 0 is read, into address DATA
LDAA #COUNT LDX #DATA LOOP: OS PK$RBYT TSTB BEQ ENDLOOP STAB 0,X INX DECA BNE LOOP ENDLOOP:
|Errors||- none -|