aboutsummaryrefslogtreecommitdiff
path: root/src/cpcout.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2017-01-17 15:46:24 +0000
committerIan C <ianc@noddybox.co.uk>2017-01-17 15:46:24 +0000
commit2ac64e7b95dd26df77d0e386fadd00c2e2151ca1 (patch)
treeea79d5e0c65aae6263075b5b3d31e27684745aea /src/cpcout.c
parent7bfdf10881b8dbff2690aeff58d84ef38567f1b3 (diff)
Added 3-byte word output to cpcout and added small tool for investigating CPC
CDT files.
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;