mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
Apply touchups to last commit
This commit is contained in:
parent
81ef162703
commit
79ff43adf5
3 changed files with 4 additions and 7 deletions
4
third_party/chibicc/as.c
vendored
4
third_party/chibicc/as.c
vendored
|
@ -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}, //
|
||||
|
|
5
third_party/chibicc/as.main.c
vendored
5
third_party/chibicc/as.main.c
vendored
|
@ -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;
|
||||
}
|
||||
|
|
2
third_party/chibicc/chibicc.mk
vendored
2
third_party/chibicc/chibicc.mk
vendored
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue