Annotation of 40BSD/sys/stand/srt0.s, revision 1.1

1.1     ! root        1: #      srt0.s  4.2     11/9/80
        !             2: 
        !             3: # Startup code for standalone system
        !             4: # Non-relocating version -- for programs which are loaded by boot
        !             5: 
        !             6:        .globl  _edata
        !             7:        .globl  _main
        !             8:        .globl  __rtt
        !             9: 
        !            10:        .set    PHYSUBA,0x20006000      # uba 0
        !            11: 
        !            12:        .set    HIGH,31         # mask for total disable
        !            13: 
        !            14:        .word   0x0
        !            15:        mtpr    $HIGH,$IPL              # just in case
        !            16:        movl    $RELOC-0x2000,sp
        !            17:        movl    $1,PHYSUBA+4            # init
        !            18: ubic:
        !            19:        movl    *$PHYSUBA,r0            # while ((up->uba_cnfgr & UBIC) == 0)
        !            20:        bitl    $0x10000,r0             #       continue;
        !            21:        jeql    ubic
        !            22:        movab   _edata,r0
        !            23: clr:
        !            24:        clrl    (r0)+
        !            25:        cmpl    r0,sp
        !            26:        jlss    clr
        !            27: start:
        !            28:        calls   $0,_main
        !            29:        jmp     start
        !            30: 
        !            31: __rtt:
        !            32:        .word   0x0
        !            33:        jmp     start

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.