mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
Partial test file reading fix
This commit is contained in:
parent
7ce94a6ab5
commit
7d7a4b453f
@ -438,7 +438,7 @@ if __name__ == "__main__":
|
|||||||
checkstring = ''
|
checkstring = ''
|
||||||
pos += 1
|
pos += 1
|
||||||
if ("frD" in checkstring):
|
if ("frD" in checkstring):
|
||||||
out_file.write(",frD=" + line[pos+4:pos+20])
|
out_file.write(",frD=0x" + line[pos+4:pos+20])
|
||||||
checkstring = ''
|
checkstring = ''
|
||||||
if ("frA" in checkstring): #sloppy temp code
|
if ("frA" in checkstring): #sloppy temp code
|
||||||
check2 = line[pos+1:pos+10]
|
check2 = line[pos+1:pos+10]
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -198,7 +198,7 @@ static void read_test_float_data() {
|
|||||||
|
|
||||||
for (i = 2; i < tokens.size(); i++) {
|
for (i = 2; i < tokens.size(); i++) {
|
||||||
if (tokens[i].rfind("frD=", 0) == 0) {
|
if (tokens[i].rfind("frD=", 0) == 0) {
|
||||||
dfp_dest = stoul(tokens[i].substr(4), NULL, 16);
|
dfp_dest = stoull(tokens[i].substr(4), NULL, 16);
|
||||||
} else if (tokens[i].rfind("frA=", 0) == 0) {
|
} else if (tokens[i].rfind("frA=", 0) == 0) {
|
||||||
dfp_src1 = stod(tokens[i].substr(4), NULL);
|
dfp_src1 = stod(tokens[i].substr(4), NULL);
|
||||||
} else if (tokens[i].rfind("frB=", 0) == 0) {
|
} else if (tokens[i].rfind("frB=", 0) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user