Ignore:
Timestamp:
01/31/09 11:48:54 (3 years ago)
Author:
debrouxl
Message:
  • Rename the "pstarter" folders to "starters", since we're going to add ttstart into it.
  • Push a bit of ttstart code into pstarter.
Location:
trunk/tigcc/starters
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tigcc/starters/pstarter.s

    • Property svn:executable deleted
    r1307 r1311  
    1 | TIGCC Program Starter 
    2 | Copyright (C) 2004-2007 Kevin Kofler, Lionel Debroux. 
     1| TI-68k Specific Program Starter ("pstarter") version 2.x. 
     2| For HW1/2/3/4 TI-68k calculators running AMS 1.00-3.10 (or compatible). 
     3| Copyright (C) 2004-2009 Kevin Kofler, Lionel Debroux. 
     4| pstarter version 1.x was 
     5| Copyright (C) 2000-2004 Thomas Nussbaumer and contributors. 
    36| 
    47| This launcher is free software; you can redistribute it and/or 
     
    154157| Check if the archive is valid and compute the uncompressed size 
    155158GET_UNCOMPRESSED_SIZE 
     159 
     160| AI1/AI2 disabling 
     161.ifdef disable_auto_ints 
     162trap #12 
     163move.w %d0,-(%sp) 
     164move.w #0x0200,%sr 
     165.endif 
     166 
    156167| Allocate the memory needed to decompress the program 
    157168| NOTE: We can't use HeapAllocPtr here because of kernel-based programs. 
     
    169180jsr (%a0) 
    170181addq.l #4,%a7 
     182 
    171183| Decompress the archive 
    172184MEM_TO_MEM_DECOMPRESS 
    173185 
     186| AI1/AI2 enabling 
     187.ifdef disable_auto_ints 
     188trap #12 
     189move.w (%sp)+,%sr 
     190.endif 
    174191 
    175192| LAUNCH DECOMPRESSED PROGRAM 
     
    385402__symbol_search_loop__: 
    386403| Store failure value in %d0 
    387 clr.w %d0 
     404moveq #0,%d0 
    388405| If the SYM_ENTRY pointer is 0, quit. 
    389406move.l %a0,%d5 
     
    512529.data 
    513530 
     531.even 
    514532DecompressedHandle: .word 0 | handle to free, 0 if no freeing needed 
    515533CompressedHandle: .word 0 | handle to unlock, 0 if no unlocking needed 
Note: See TracChangeset for help on using the changeset viewer.