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

Subversion Repositories forwardcom

[/] [forwardcom/] [libraries/] [gets_s.as] - Blame information for rev 160

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

Line No. Rev Author Line
1 91 Agner
/*********************************  gets_s.as  ********************************
2
* Author:        Agner Fog
3
* date created:  2018-03-23
4
* Last modified: 2020-04-25
5
* Version:       1.09
6
* Project:       ForwardCom library libc.li
7
* Description:   gets_s function. Read string from stdin
8
* C declaration: char *gets_s(char *str, int n);
9
*
10
* Copyright 2018-2020 GNU General Public License http://www.gnu.org/licenses
11
*****************************************************************************/
12
 
13
code section execute align = 4
14
 
15
_gets_s function public reguse = 3
16
 
17
sys_call(r0, r1, 1, 0x124)   // system call gets_s. Buffer base r0, size r1
18
return
19
 
20
_gets_s end
21
 
22
code end

powered by: WebSVN 2.1.0

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