prototype for stage1_assembler-1 does relative addressing different
bug fix for issue #13
This commit is contained in:
parent
d12606c9bb
commit
132d29e737
|
@ -39,8 +39,8 @@ void storePointer()
|
||||||
int c = fgetc(source_file);
|
int c = fgetc(source_file);
|
||||||
int target = table[c];
|
int target = table[c];
|
||||||
uint8_t first, second;
|
uint8_t first, second;
|
||||||
first = (target - ip + 4)/256;
|
first = (target - ip)/256;
|
||||||
second = (target - ip + 4)%256;
|
second = (target - ip)%256;
|
||||||
printf("%c%c", first, second );
|
printf("%c%c", first, second );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue