Searching Forums -two items
Colin Ferris (399) 1814 posts |
Is it possible to search the Forum – for two items |
Chris Evans (457) 1614 posts |
The search does a phrase search looking the two words “smith” & “jones” following each other with nothing in-between, so very limiting. Use google with site:www.riscosopen.org/forum smith jones so use: I did think about setting up a webpage with search boxes for particular forums but I find relevant postings for what I look for are often not in the forum I think most likely. |
Rick Murray (539) 13840 posts |
I thought I read ages ago that it was a regex, so I tried |
Colin Ferris (399) 1814 posts |
Thanks Chris E. – found what I was looking for. Is there anyway of searching Google Groups from RO? RO FireFox sort of worked. |
Colin Ferris (399) 1814 posts |
As a extra – what is required in the regs before _fprintf (SharedCLib) is called? R1 = Adr of msg. [correction – changed _printf to _fprintf] |
Rick Murray (539) 13840 posts |
I’m at work so can’t help, however looking at the source should give you some clues. Have you set up the C environment? (R8? R12? something like that) |
Jeffrey Lee (213) 6048 posts |
The message should be in R0, not R1. Extra arguments go in R1-R3, and anything beyond that needs to be passed on the stack. If your assembler is being called from C then there shouldn’t be anything extra that you need to set up – although you might need to make sure R10 (stack limit) and R11 (frame pointer) are correct. Rick even has a handy APCS guide on his website ;-) http://www.heyrick.co.uk/assembler/apcsintro.html |
Colin Ferris (399) 1814 posts |
When you just run ‘SoftLoad’ – you get the help msg + a error msg. Using Ricks module ‘BreakAid’. I have tacked on StubsG to ‘Softload’ – so the 32bit C doesn’t have to be loaded to go into RO5.xx. Seems to work ok loading RO5 – but there is no help msg out – on running softload – just ‘Return code too large’. Trying to work out why no help msg – from ‘SoftLoad’.. Note:- Changing to swi OS_Write0 and ptr to r0 – help msg generated. |
Jeffrey Lee (213) 6048 posts |
The source for that bit of code is here If you’ve ripped the CLib stubs out of the binary and replaced them with SubsG then I’d guess that it’s failing because the location of “stderr” is different between the two stub versions. |
Colin Ferris (399) 1814 posts |
Thanks for your help/ptrs. First The second is the error msg -: ‘Return code too large’. Seems to be comming from CLib |exit| Is the value 275 arbitrary? From the source - #define ErrorReturnCode 257 |
Colin Ferris (399) 1814 posts |
Changing two instructions – in the latest version – 257 down to 255 removes the error ‘Return code too large’. Just interested in where the text is going. Just fired up !CC – moths everywhere. Dragged the ‘C’ source file onto it – ohh – great list of errors/warnings. Thats after putting the code in a ‘c’ directory – it just barfed at just a file by itself. |
Colin Ferris (399) 1814 posts |
Any pointers to where a copy of these files are. #include “Global/OSEntries.h” |
Steve Fryatt (216) 2105 posts |
Do you not need to have set the build environment up first, using Builder, so that all the required headers exist in useful places? Have a look at the info in https://www.riscosopen.org/wiki/documentation/show/Build%20FAQ along with https://www.riscosopen.org/wiki/documentation/show/Beginner’s%20guide%20to%20ROM%20builds |
Colin Ferris (399) 1814 posts |
#include “Global/OSEntries.h” Think I have found the ‘little blimmer’ in my code a pointer mistake. Anyone want to try it out ‘Softload’ with a RPC (uses StubG)? No need for Softload to check for a CLib – and Softload seems ok to run from the !Run file. Not really needed with R/Sqrl and family – there is a Windows Dir called ‘Chunks’ – which you can place 26/32bit modules in (ie Clib). If running a RO5.xx – the 26bits versions are not loaded -as with hardware podule code. |