Description:
Programming of Acorn computers.
|
|
|
_kernel_osword not 32 bit compatible
|
| |
I am concerned that the _kernel_osword function (part of the shared C library kernel) is not 32 bit compatible. It seems to be one of those which are documented by comments in header file "kernel.h" as returning >=0 if the call succeeds, -1 if the call fails but causes no os error, or -2 if the call causes an os error.... more »
|
|
Proper use of the _kernel_ERROR macro value
|
| |
Hello, The _kernel_ERROR macro is defined as (-2) by the header "kernel.h", which is part of Acorn C/C++. I had never given much thought to its correct usage until yesterday, when I was rewriting a signal handler to comply with the spirit of this edict: [link]... more »
|
|
Is it me, or is this doing something odd?
|
| |
Is it me, or is this doing something odd? Running on RO 5.14. The following bit of BASIC finds the current time, converts it to text. So far so good. Then I convert the text to a binary time, and back to text. The result is ALWAYS the day before. ON ERROR PRINT REPORT$;" at line ";ERL:END DIM buf% 512, time% 5, format% 60, date% 60, temp% 60, ordinals% 32... more »
|
|
Filer_OpenDir Oddity in RISC OS 6.16
|
| |
Ive upgraded a VirtualRPC_ADJUSTSA 4.39 system to RISC OS 6.16. I have a Filer_OpenDir command in an obey file which worked on 4.39 but on 6.16 the directory opens in a different place. On changing the X coordinate of the command, the Y position also seems to be affected. It looks like the X value is also being used as the Y... more »
|
|
Filer_Run from a BASIC application
|
| |
I've looked up Filer_Run in PRM 2-502 but I'm not clear on the scope of the restrictions. I've got an application with a very common structure: an application directory whose name begins with !; in the directory are, among others, a !Run file, and a BASIC RunImage file. I need the BASIC to run a separate application with the same structure. Is it OK for... more »
|
|
SWIs and BASIC file reading/writing in C++
|
| |
OK... I'm planning to port my Space Invaders clone to C++... On the whole, the job should be fairly easy, as I've dealt with languages like JavaScript in the past, which are similar to C/C++ in many respects. The two aspects I'm not sure about are calling SWIs and file I/O using C++ routines compatible with BASICs PRINT#/INPUT#, which are... more »
|
|
Learning ARM assembler...
|
| |
I'm interested in cutting my teeth in ASM. Are there any resources out there for beginners. I've been writing in BASIC for years and I think I'm ready to move up a gear. I would need something fairly recent. By recent, I mean aware of the changes required to be 26/32 neutral. I would probably start off with using the assembler built into BASIC... more »
|
|
*Copy from within a BASIC Wimp task
|
| |
Can someone with the appropriate knowledge please clarify for me whether it is safe to issue a Copy command from within a Wimp task (written in BASIC) simply from an OSCLI? I've searched on the web but I can't see a conclusive answer. Since I want the Copy operation to be silent, and not to interrupt operation of the main programme other than for the... more »
|
|
|