Skip to content

Commit a010490

Browse files
committed
for XMS_FAIL_FIRST_ALLOC use a flag not counter
1 parent 0b54ce5 commit a010490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

8086tiny.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,9 +1238,9 @@ void callxms() {
12381238
OPCODE 9:
12391239
#ifdef XMS_FAIL_FIRST_ALLOC
12401240
{
1241-
static int counter = 0;
1242-
counter++;
1243-
if (counter <= 1) {
1241+
static uint8_t enabled = 0;
1242+
if (! enabled) {
1243+
enabled = 1;
12441244
set_CF(1); return;
12451245
// signal failure to tinyxms
12461246
}

0 commit comments

Comments
 (0)