Drobe :: The archives
About Drobe | Contact | RSS | Twitter | Tech docs | Downloads | BBC Micro

Confirm comment report request

In reply to Loris:

I added an AIF header to make StrongED work and it really was very simple (my changes are now with the maintainer). The zero init code is not mandatory, and nor is the compression or relocation code.

.start MOV R0,R0 ; image is not compressed MOV R0,R0 ; image is not self-relocating MOV R0,R0 ; image has no debug/zero init code BL image_entry_point ; program should never return SWI "OS_Exit" ; last ditch exit in case of return EQUD image_entry_point-start ; read-only size (just this header) EQUD len_prg%-(image_entry_point-start) ; read-write size (remainder) EQUD 0 ; debug area size EQUD 0 ; zero initialisation size EQUD 0 ; debug type (no debugging data present) EQUD &8000 ; image base address EQUD 0 ; work space required EQUD 32 ; addressing mode and flags (32 bit compatible) EQUD &0 ; data base address EQUD 0 ; reserved word &38 EQUD 0 ; reserved word &3C MOV R0,R0 ; debug init instruction ; would be start of zero init code but we have none .image_entry_point ... rest of StrongED's source code. (len_prg% is the length of the whole output executable file, including this header)

Obviously this is not ideal because almost all of the code is in the read/write area, which will circumvent any memory protection that may be implemented in future. However a utility to produce AIF headers for legacy Absolute files would be very easy to write.

 is a RISC OS Userthesnark on 09/05/06 8:33PM
[ Reply | Permalink | Report ]

Click on the button below to confirm you wish to flag up this comment to the website's administrators. Abuse of this service will be frowned upon and it should only be used to notify us of comments that are extremely distasteful, indecent or otherwise unlawful. If you disagree with an opinion expressed or fact stated in a comment, please take part in the debate rather than expect it to be removed.

Return to the drobe.co.uk front page


Reporting user / IP: /
Comment GID: 26315
Timestamp: Wed, 08 Apr 2020 18:38:17 +0000

Search the archives

Today's featured article

  • Wakefield 2006 show report
    All the thrills and spills from the weekend [Updated]
     90 comments, latest by bucksboy on 23/05/06 5:57PM. Published: 15 May 2006

  • Random article

  • Aemulor ARM in ARM with Iyonix at M25E event
    Tonight: M25E user group plays host to Castle Iyonix and emulator meisters Aemulor.com
     Discuss this. Published: 25 Nov 2002

  • Useful links

    News and media:

    Top developers:
    RISCOS LtdRISC OS OpenMW SoftwareR-CompAdvantage SixVirtualAcorn

    CJE MicrosAPDLCastlea4X-AmpleLiquid SiliconWebmonster


    RISCOS.org.ukRISCOS.orgRISCOS.infoFilebaseChris Why's Acorn/RISC OS collectionNetSurf

    Non-RISC OS:
    The RegisterThe InquirerApple InsiderBBC NewsSky NewsGoogle Newsxkcddiodesign

    © 1999-2009 The Drobe Team. Some rights reserved, click here for more information
    Powered by MiniDrobeCMS, based on J4U | Statistics
    "Drobe's only failing is the sixth-form geek-journo tone with its lead balloon humour and occasional smugness and ugly personalty"
    Page generated in 0.0658 seconds.