$C600 (copstring) - copy a string into the work buffer at a3.
Copies len bytes from a0 to a3 and terminates with 0; a3 then points to the 0. The original copies in blocks of 8 bytes plus the rest; BL_STRCOPY copies by longs where the parity of both addresses allows it, otherwise by bytes, with the same result. The compiler calls it with every data register live (stvar, makelit: no save), so the thunk keeps d0/d1; the C function uses only d0, d1, a0 and a3 (no save of its own, checked in the disassembly).
- Parameters
-
| src | a0: the characters |
| len | d0: the length - the caller's stack argument (the compiler pushes it with move.l (a0)+,-(a7) before the call and removes it later), loaded by the thunk |