Compare commits

..
2 Commits
Author SHA1 Message Date
lyrathorpe d8c80df020 feat(hello): add a Hellorld application
just the docs example, but better commented
2026-06-26 17:42:46 +01:00
lyrathorpe 679a300a67 docs(tsc): add some TODO in there 2026-06-26 17:42:13 +01:00
3 changed files with 25 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
/*
* hello.c
*
* Hellorld application using Psion's "CLIB" - just plain C, no Psion extensions
*/
#include <stdio.h>
int main(VOID) {
// Does sprintf work here? The SDK is probably too old, but modern conventions would be nice
printf("Hellorld!");
// Wait for a key to be pressed
getchar();
// Exit, not sure why 0 is being passed as it's a void? But this is the SDK example code
return(0);
}
+5
View File
@@ -0,0 +1,5 @@
#system epoc img
#model small jpi
#compile hello
#link hello
+4 -1
View File
@@ -1,2 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
EMU2_DRIVE_C=$HOME/.bin/psion-sibo-sdk EMU2_DRIVE_D=`pwd` EMU2_DEFAULT_DRIVE=D $HOME/.bin/emu2 $HOME/.bin/psion-sibo-sdk/TS/SYS/TSC.EXE $1 $2 -- 'PATH=%PATH%;C:\DOS;C:\TS\INCLUDE;C:\TS\SYS;C:\TS\LIB;C:\SIBOSDK\SYS;'
# TODO: Ensure all positional parameters get copied in properly, regardless of how many there are. Always before --
EMU2_DRIVE_C=$HOME/.bin/psion-sibo-sdk EMU2_DRIVE_D=$(pwd) EMU2_DEFAULT_DRIVE=D $HOME/.bin/emu2 $HOME/.bin/psion-sibo-sdk/TS/SYS/TSC.EXE $1 $2 -- 'PATH=%PATH%;C:\DOS;C:\TS\INCLUDE;C:\TS\SYS;C:\TS\LIB;C:\SIBOSDK\SYS;'