From 962ad175aee634274b408ead38b13e6bc90e2fe7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 17 Jun 2023 23:26:45 +0200 Subject: basic ELF output --- amd64/all.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'amd64/all.h') diff --git a/amd64/all.h b/amd64/all.h index 3b08761..a038ffd 100644 --- a/amd64/all.h +++ b/amd64/all.h @@ -12,6 +12,12 @@ enum reg { #undef R }; +static inline void +wr16le(uchar *p, ushort x) +{ + p[0] = x >> 0; p[1] = x >> 8; +} + static inline void wr32le(uchar *p, uint x) { -- cgit v1.2.3