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

1.1     ! root        1: # Startup code for standalone system
        !             2: # Non-relocating version -- for programs which are loaded by boot
        !             3: 
        !             4:        .globl  _end
        !             5:        .globl  _main
        !             6:        .globl  __rtt
        !             7:        .globl  _edata
        !             8: 
        !             9:        .set    PHYSUBA,0x20006000      # uba 0
        !            10:        .set    PHYSMBA0,0x20010000     # mba 0
        !            11:        .set    PHYSMBA1,0x20012000     # mba 1
        !            12:        .set    PHYSUMEM,0x2013e000     # unibus memory
        !            13: 
        !            14:        .set    HIGH,31         # mask for total disable
        !            15: 
        !            16:        .word   0x0
        !            17:        mtpr    $HIGH,$IPL              # just in case
        !            18:        movl    $1,PHYSMBA0+4           # init
        !            19:        movl    $1,PHYSMBA1+4           # init
        !            20:        movl    $1,PHYSUBA+4            # init
        !            21:        subl3   $_edata,$RELOC-0x2000,r0
        !            22:        movc5   $0,(sp),$0,r0,_edata
        !            23: start:
        !            24:        movl    $RELOC-0x2000,sp
        !            25:        calls   $0,_main
        !            26:        jmp     start
        !            27: 
        !            28: __rtt:
        !            29:        .word   0x0
        !            30:        jmp     start

unix.superglobalmegacorp.com

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