Function Name
i_FillRam
Purpose
Identical to FillRam, but with inline data. Fills a memory region with a specified byte.
Call Address
$C1B4
Input
The addresses to use are provided inline in the bytes following the call:
JSR i_FillRam ;The routine call.
.word LengthofRegion ;The length of the region to fill.
.word AddressofRegion ;The address of the region.
.byte FillByte ;The byte to fill the region with.
NOP ;Control returns here after the JSR.
Description
A simple loop fills the memory region with the specified byte value. This routine uses inline data to set everything up before calling FillRam. The stack is altered so that returning from this routine skips the 5 bytes following the call. The intervening 5 bytes are used as the routine's input.


