diff options
| author | 2023-06-17 23:26:45 +0200 | |
|---|---|---|
| committer | 2023-06-17 23:26:45 +0200 | |
| commit | 962ad175aee634274b408ead38b13e6bc90e2fe7 (patch) | |
| tree | cfda733adf56ed12e829f594e0b6d66f0a1a7a70 /amd64/all.h | |
| parent | ec28e9057e84b92acabb7ebf9122af59738917ad (diff) | |
basic ELF output
Diffstat (limited to 'amd64/all.h')
| -rw-r--r-- | amd64/all.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/amd64/all.h b/amd64/all.h index 3b08761..a038ffd 100644 --- a/amd64/all.h +++ b/amd64/all.h @@ -13,6 +13,12 @@ enum reg { }; static inline void +wr16le(uchar *p, ushort x) +{ + p[0] = x >> 0; p[1] = x >> 8; +} + +static inline void wr32le(uchar *p, uint x) { p[0] = x >> 0; p[1] = x >> 8; |