v0.61: Fixed bug in & address of local arrays

This commit is contained in:
Bobbi Webber-Manners 2018-05-03 21:09:21 -04:00 committed by GitHub
parent 2d90634e2a
commit e52b236c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 15 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
eightball

Binary file not shown.

View File

@ -2415,6 +2415,13 @@ unsigned char getintvar(char *name,
} else {
emit(VM_LDAWORD);
}
} else {
if (local && compilingsub) {
if (*(int *) ((unsigned char *) ptr + sizeof(var_t) + sizeof(int)) != -1) {
/* Convert to absolute address */
emit(VM_RTOA);
}
}
}
} else {
emitldi((int) ((int *) bodyptr));
@ -2437,6 +2444,13 @@ unsigned char getintvar(char *name,
} else {
emit(VM_LDABYTE);
}
} else {
if (local && compilingsub) {
if (*(int *) ((unsigned char *) ptr + sizeof(var_t) + sizeof(int)) != -1) {
/* Convert to absolute address */
emit(VM_RTOA);
}
}
}
}
} else {

Binary file not shown.

View File

@ -37,7 +37,7 @@
/* */
/**************************************************************************/
#define VERSIONSTR "0.60"
#define VERSIONSTR "0.61"
void print(char *str);

Binary file not shown.

BIN
test.d64

Binary file not shown.

BIN
test.dsk

Binary file not shown.