aboutsummaryrefslogtreecommitdiff
path: root/src/cpcout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpcout.c')
-rw-r--r--src/cpcout.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cpcout.c b/src/cpcout.c
index b962340..53496ea 100644
--- a/src/cpcout.c
+++ b/src/cpcout.c
@@ -70,6 +70,18 @@ static void WriteWord(FILE *fp, int w)
}
+static void Write3(FILE *fp, unsigned long l)
+{
+ int f;
+
+ for(f = 0; f < 3; f++)
+ {
+ WriteByte(fp, l & 0xff);
+ l >>= 8u;
+ }
+}
+
+
static void WriteLong(FILE *fp, unsigned long l)
{
int f;