Date : Thu, 30 Jun 2005 22:46:10 +0100
From : jgh@... (Jonathan Graham Harston)
Subject: Small-C v0.73
Ooo, I just need to share this with somebody!
I've been working on updating A.J.Tarvis's Small-C to be more
ISO/ANSI compliant and to provide a full BBC library. After fixing
a string buffer that was *wayyy* to small, I've been carefully
rewriting huge chunks of library code. I've been fair thrashing
my sooper dooper 630M hard drive! Today I successfully compiled
and ran the following:
#include <stdio.h>
#include <bbcos.h>
int main() {
int c
printf("Hello there.\n");
do {
c=os_rdch();
printf("char=%x esc=%x\n",c,os_escape());
os_byte(126,0);
} while (c != 0x20);
return 0;
}
It works!!!! It gives the following output:
Hello there.
char=61 esc=0
char=62 esc=0
char=63 esc=0
char=11b esc=ffff
char esc=0
Way hey!!! It's not in a releasbale state yet, but you can have a
butchers at http://mdfs.net/System/C/BBC/Small-C/v073
--
J.G.Harston - jgh@... - mdfs.net/User/JGH
BBC BASIC for Windows and Internationalisation
See http://mdfs.net/Software/BBCBasic/Windows/ProgTips