Apply touchups to last commit

This commit is contained in:
Justine Tunney 2020-12-29 23:52:27 -08:00
parent 81ef162703
commit 79ff43adf5
3 changed files with 4 additions and 7 deletions

View file

@ -2014,7 +2014,6 @@ static int ParseModrm(struct As *a, int *disp) {
index or size
base or reg
000100000000000100101
0b00000000000000000000000000000000*/
struct Slice str;
int reg, scale, modrm = 0;
@ -2866,6 +2865,7 @@ static void OnFildl(struct As *a, struct Slice s) { OpFpu1(a, 0xDB, 0); }
static void OnFildll(struct As *a, struct Slice s) { OpFpu1(a, 0xDF, 5); }
static void OnFildq(struct As *a, struct Slice s) { OpFpu1(a, 0xDF, 5); }
static void OnFilds(struct As *a, struct Slice s) { OpFpu1(a, 0xDF, 0); }
static void OnFistpq(struct As *a, struct Slice s) { OpFpu1(a, 0xDF, 7); }
static void OnFisttpq(struct As *a, struct Slice s) { OpFpu1(a, 0xDD, 1); }
static void OnFisttps(struct As *a, struct Slice s) { OpFpu1(a, 0xDF, 1); }
static void OnFld(struct As *a, struct Slice s) { OpFpu1(a, 0xD9, 0); }
@ -3280,6 +3280,8 @@ static const struct Directive8 {
{"fildll", OnFildll}, //
{"fildq", OnFildq}, //
{"filds", OnFilds}, //
{"fistpq", OnFistpq}, //
{"fistpll", OnFistpq}, //
{"fisttpll", OnFisttpq}, //
{"fisttpq", OnFisttpq}, //
{"fisttps", OnFisttps}, //

View file

@ -20,11 +20,6 @@
int main(int argc, char *argv[]) {
showcrashreports();
if (argc == 1) {
system("o//third_party/chibicc/as.com -o /tmp/o /home/jart/trash/hog.s");
system("objdump -xwd /tmp/o");
exit(0);
}
Assembler(argc, argv);
return 0;
}

View file

@ -112,7 +112,7 @@ o/$(MODE)/third_party/chibicc/as.com.dbg: \
$(THIRD_PARTY_CHIBICC_A) \
$(APE) \
$(CRT) \
o/$(MODE)/third_party/chibicc/as.o \
o/$(MODE)/third_party/chibicc/as.main.o \
$(THIRD_PARTY_CHIBICC_A).pkg
@$(APELINK)