Fix handling of long literals

This commit is contained in:
Maurizio Porrato 2020-01-22 09:46:24 +00:00
parent bc55eadb82
commit 98cecd782f
1 changed files with 2 additions and 1 deletions

3
dsim.c
View File

@ -188,7 +188,8 @@ uint16_t *val(int operand, bool is_a)
return &ram[ram[rpc++]];
case 0x1f:
ticks++;
return &ram[rpc++]; /* FIXME: write to literal */
lit = ram[rpc++];
return &lit;
default:
lit = operand - 0x21;
return &lit;