OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [sysvnecv70/] [sbrk.S] - Blame information for rev 207

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
 
2
        .globl  _sbrk
3
        .globl  __sbrk
4
_sbrk:
5
__sbrk:
6
        mov.w     tptr,r0
7
         test.w   [ap]
8
         je        justreport
9
         add.w    r0,[ap]
10
         push     [ap]
11
         mov.w    ap,r3
12
         mov.w    sp,ap
13
         chlvl    #0x0,#0x11
14
         jnl     ok
15
         add.w    #0x4,sp
16
         jmp      cerror
17
ok:      add.w    #0x4,sp
18
         mov.w    tptr,r0
19
         mov.w    [r3],tptr
20
justreport:
21
        ret       #0x0
22
 
23
        .globl  _brk
24
        .globl  __brk
25
__brk:
26
_brk:    chlvl    #0x0,#0x11
27
         jnl     ok1
28
         jmp     cerror
29
ok1:     mov.w    [ap],63
30
         xor.w    r0,r0
31
         ret      #0x0
32
 
33
                .data
34
tptr:   .word   _end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.