mirror of
https://github.com/bobbimanners/EightBall.git
synced 2024-10-19 07:24:14 +00:00
v0.61: Fixed bug in & address of local arrays
This commit is contained in:
parent
2d90634e2a
commit
e52b236c53
BIN
8ball20.prg
BIN
8ball20.prg
Binary file not shown.
BIN
8ball64.prg
BIN
8ball64.prg
Binary file not shown.
BIN
8ballvm20.prg
BIN
8ballvm20.prg
Binary file not shown.
BIN
8ballvm64.prg
BIN
8ballvm64.prg
Binary file not shown.
BIN
ebvm.system
BIN
ebvm.system
Binary file not shown.
14
eightball.c
14
eightball.c
@ -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 {
|
||||
|
BIN
eightball.system
BIN
eightball.system
Binary file not shown.
@ -37,7 +37,7 @@
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
|
||||
#define VERSIONSTR "0.60"
|
||||
#define VERSIONSTR "0.61"
|
||||
|
||||
void print(char *str);
|
||||
|
||||
|
BIN
eightballvm
BIN
eightballvm
Binary file not shown.
Loading…
Reference in New Issue
Block a user