mirror of
https://github.com/open-simh/simh.git
synced 2026-01-20 01:54:28 +00:00
PDP11: Enforce limit on number of displays in TV device.
This commit is contained in:
parent
d1e9358a63
commit
009d748ad6
@ -155,6 +155,9 @@ render_word (uint8 buffer, uint16 address)
|
||||
uint16 data;
|
||||
int i;
|
||||
|
||||
if (display >= TV_WINDOWS)
|
||||
return;
|
||||
|
||||
buffer &= 077;
|
||||
address /= 2;
|
||||
address += (TVCNSL[buffer] & SCROLL) << 2;
|
||||
@ -175,6 +178,8 @@ render_display (uint16 display)
|
||||
{
|
||||
uint8 buffer = tv_source[display];
|
||||
int i;
|
||||
if (display >= TV_WINDOWS)
|
||||
return;
|
||||
sim_debug (DBG_VID, &tv_dev, "Render display %d buffer %d\n",
|
||||
display, buffer);
|
||||
for (i = 0; i < (TV_PIXELS / 8); i += 2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user