Fix DISPLAY

This commit is contained in:
otya128 committed 2016-12-20 21:13:26 +09:00
1 parent 73d8b5bb5e
commit c03ab93395
2 files changed
+6

No files matched your search

+2
View File
@@ -414,6 +414,8 @@ class BuiltinFunction
}
static void DISPLAY(PetitComputer p, int display)
{
if (p.currentDisplay.count <= display || display < 0)
throw new OutOfRange("DISPLAY", 1);
p.display(display);
}
static int DISPLAY(PetitComputer p)