prototype for stage1_assembler-1 does relative addressing different

bug fix for issue #13
This commit is contained in:
Mark Jenkins 2019-06-18 22:18:30 -05:00
parent d12606c9bb
commit 132d29e737
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ void storePointer()
int c = fgetc(source_file);
int target = table[c];
uint8_t first, second;
first = (target - ip + 4)/256;
second = (target - ip + 4)%256;
first = (target - ip)/256;
second = (target - ip)%256;
printf("%c%c", first, second );
}