Compare commits
2
Commits
b8cdb7a5f8
...
d8c80df020
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8c80df020 | ||
|
|
679a300a67 |
@@ -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);
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#system epoc img
|
||||||
|
#model small jpi
|
||||||
|
|
||||||
|
#compile hello
|
||||||
|
#link hello
|
||||||
@@ -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;'
|
||||||
|
|||||||
Reference in New Issue
Block a user