Merge pull request #14 from markjenkins/fix_prototype_assembler-1

prototype for stage1_assembler-1 does relative addressing different
This commit is contained in:
Jeremiah 2019-06-21 17:30:11 -04:00 committed by GitHub
commit a90978ef3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 );
}