mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Make more improvements
This change includes many bug fixes, for the NT polyfills, strings, memory, boot, and math libraries which were discovered by adding more tools for recreational programming, such as PC emulation. Lemon has also been vendored because it works so well at parsing languages.
This commit is contained in:
parent
416fd86676
commit
23d333c090
201 changed files with 14558 additions and 3082 deletions
|
@ -45,25 +45,10 @@ struct Dis {
|
|||
} * p;
|
||||
} edges;
|
||||
struct XedDecodedInst xedd[1];
|
||||
uint64_t addr;
|
||||
char buf[512];
|
||||
};
|
||||
|
||||
struct DisBuilder {
|
||||
struct Dis *dis;
|
||||
struct XedDecodedInst *xedd;
|
||||
int64_t addr;
|
||||
};
|
||||
|
||||
struct DisHigh {
|
||||
uint8_t keyword;
|
||||
uint8_t reg;
|
||||
uint8_t literal;
|
||||
uint8_t label;
|
||||
uint8_t comment;
|
||||
};
|
||||
|
||||
extern struct DisHigh *g_dis_high;
|
||||
|
||||
long Dis(struct Dis *, struct Machine *, int64_t, int);
|
||||
long DisFind(struct Dis *, int64_t);
|
||||
void DisFree(struct Dis *);
|
||||
|
@ -74,10 +59,9 @@ long DisFindSym(struct Dis *, int64_t);
|
|||
long DisFindSymByName(struct Dis *, const char *);
|
||||
bool DisIsText(struct Dis *, int64_t);
|
||||
bool DisIsProg(struct Dis *, int64_t);
|
||||
char *DisInst(struct Dis *, char *, const char *);
|
||||
char *DisArg(struct Dis *, char *, const char *);
|
||||
const char *DisSpec(struct XedDecodedInst *, char *);
|
||||
char *DisInst(struct DisBuilder, char *, const char *);
|
||||
char *DisArg(struct DisBuilder, char *, const char *);
|
||||
char *DisHigh(char *, int);
|
||||
const char *DisGetLine(struct Dis *, struct Machine *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue