On 2009/1/26 Theo Markettos <[email protected]> wrote: > That's odd. As Tim says, networking works best in 4.02 so if you're trying > to work on the host code I wouldn't introduce another variable by using > another guest OS. But SWI &56AC4 is EtherRPCEm's route into the emulator's > host networking code, so it's a bit odd that it's not working. Possibly > this is a 3.7 thing, I'm not sure. Maybe RPCEmu is somehow not grabbing the > SWI in the SWI vector and it's slipping through into RISC OS (which has no > module that implements this SWI range, so in that sense the error is valid). > But if EtherRPCEmu can't call the SWI networking won't work. >
Using 4.02 I get exactly the same error. I've had a look at the source for the module and there looks to be an error: cmhg.ModHdr says "swi-chunk-base-number: 0x58cc0". Presumably this means that any SWIs issued by the module will start from this number. However, the code in "s.intveneer" is issuing &56ac4. If this is an EtherRPCEm SWI, shouldn't it be a &58cc0 number? Unfortunately I can't recompile it to try it out as the 1996-vintage C/C++ suite I've got doesn't like some of the assembly code. See attached for a copy of the output from objasm. -- [email protected]
objasm -throwback -NoCache -depend !Depend -apcs 3 -from @.s.intveneer -to @.o.intveneer ARM AOF Macro Assembler 3.06 (Acorn Computers Ltd) [Jan 11 1995] Warning: MRS/MSR invalid in 26-bit PC configurations at line 114 in macro ToSVCEAll at line 84 in file s.intveneer 114 0000009c MRS r2, CPSR ; remember mode & flags Warning: MRS/MSR invalid in 26-bit PC configurations at line 116 in macro ToSVCEAll at line 84 in file s.intveneer 116 000000a4 MSR CPSR_c, r3 Error: Bad CPSR or SPSR designator at line 116 in macro ToSVCEAll at line 84 in file s.intveneer 116 000000a4 MSR CPSR_c, r3 Warning: MRS/MSR invalid in 26-bit PC configurations at line 131 in macro FromSVCEAllRet at line 89 in file s.intveneer 131 000000fc MSR CPSR_c, r2 Error: Bad CPSR or SPSR designator at line 131 in macro FromSVCEAllRet at line 89 in file s.intveneer 131 000000fc MSR CPSR_c, r2 Warning: MRS/MSR invalid in 26-bit PC configurations at line 114 in macro ToSVCEAll at line 100 in file s.intveneer 114 00000124 MRS r2, CPSR ; remember mode & flags Warning: MRS/MSR invalid in 26-bit PC configurations at line 116 in macro ToSVCEAll at line 100 in file s.intveneer 116 0000012c MSR CPSR_c, r3 Error: Bad CPSR or SPSR designator at line 116 in macro ToSVCEAll at line 100 in file s.intveneer 116 0000012c MSR CPSR_c, r3 Warning: MRS/MSR invalid in 26-bit PC configurations at line 131 in macro FromSVCEAllRet at line 117 in file s.intveneer 131 000001a8 MSR CPSR_c, r2 Error: Bad CPSR or SPSR designator at line 131 in macro FromSVCEAllRet at line 117 in file s.intveneer 131 000001a8 MSR CPSR_c, r2 Assembly terminated: 4 Errors, 6 Warnings AMU: *** exit (1) *** AMU: *** '!System.310.Modules.Network.EtherRPCEm' not re-made because of errors ***
_______________________________________________ Rpcemu mailing list [email protected] http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu
