clang-format
This commit is contained in:
parent
550aceee23
commit
0c819b9f59
|
@ -193,12 +193,10 @@ writebyte(Uint8 b)
|
||||||
if(p.ptr < TRIM) {
|
if(p.ptr < TRIM) {
|
||||||
fprintf(stderr, "-- Writing in zero-page: %02x\n", b);
|
fprintf(stderr, "-- Writing in zero-page: %02x\n", b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
} else if(p.ptr > 0xffff) {
|
||||||
else if(p.ptr > 0xffff) {
|
|
||||||
fprintf(stderr, "-- Writing after the end of RAM: %02x\n", b);
|
fprintf(stderr, "-- Writing after the end of RAM: %02x\n", b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
} else if(p.ptr < p.length) {
|
||||||
else if(p.ptr < p.length) {
|
|
||||||
fprintf(stderr, "-- Memory overwrite: %04x -> %04x\n", p.length, p.ptr);
|
fprintf(stderr, "-- Memory overwrite: %04x -> %04x\n", p.length, p.ptr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -302,8 +300,7 @@ parse(char *w, FILE *f)
|
||||||
return error("Invalid hex literal", w);
|
return error("Invalid hex literal", w);
|
||||||
if(slen(w) == 3) {
|
if(slen(w) == 3) {
|
||||||
if(!writelitbyte(shex(w + 1))) return 0;
|
if(!writelitbyte(shex(w + 1))) return 0;
|
||||||
}
|
} else if(slen(w) == 5) {
|
||||||
else if(slen(w) == 5) {
|
|
||||||
if(!writeshort(shex(w + 1), 1)) return 0;
|
if(!writeshort(shex(w + 1), 1)) return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue