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

Subversion Repositories forwardcom

[/] [forwardcom/] [libraries/] [fgets.as] - Rev 147

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

/*********************************  fgets.as  *********************************
* Author:        Agner Fog
* date created:  2018-03-21
* Last modified: 2020-04-25
* Version:       1.09
* Project:       ForwardCom library libc.li
* Description:   fgets function. Read string from file
* C declaration: char *fgets(char *str, int n, FILE *stream); 
*
* Copyright 2018-2020 GNU General Public License http://www.gnu.org/licenses
*****************************************************************************/

code section execute align = 4

_fgets function public reguse = 7

sys_call(r0, r1, 1, 0x123)   // system call fgets. Buffer base r0, size r1
return

_fgets end

code end

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

powered by: WebSVN 2.1.0

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