Not sure if this is the appropriate forum, but it sounds like something a graphics programmer might have had to deal with before.

Let's say I have a 2D array of boolean, representing the surface of a monochrome screen. Let's say I have another 2D Array, representing an object to place in that screen, and want to put it in a specific place inside the first array. i.e,

00000000
00000000
00000000
00000000
00000000
00000000

is my first array

and

11
11

is my second.

What would be a good way (in psuedocode) to do something like this

InsertArray(4,3)

That would result in the original array looking like

00000000
00000000
00011000
00011000
00000000
00000000

Any suggestions? Obviously the arrays are much bigger, but the idea should be the same regardless..

Bill