Browse Source

_SETBLOCK return fix

vampirefrog 1 year ago
parent
commit
73c5c2dfad
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      v68doscall.c

+ 2
- 1
v68doscall.c View File

@@ -455,8 +455,9 @@ int v68_dos_call(uint16_t instr) {
455 455
 				logcall("memptr=0x%08x len=%d\n", memptr, len);
456 456
 				v68_mem_dump();
457 457
 				logcall("Shrinking mem\n");
458
-				v68_mem_shrink(memptr, len);
458
+				int r = v68_mem_shrink(memptr, len);
459 459
 				v68_mem_dump();
460
+				m68k_set_reg(M68K_REG_D0, r);
460 461
 			}
461 462
 			break;
462 463
 		case DOS_CALL_MALLOC: {

Loading…
Cancel
Save