URL
https://opencores.org/ocsvn/forwardcom/forwardcom/trunk
Subversion Repositories forwardcom
[/] [forwardcom/] [libraries/] [getchar.as] - Rev 117
Go to most recent revision | Compare with Previous | Blame | View Log
/********************************* getchar.as ******************************** Author: Agner Fog* date created: 2018-03-21* Last modified: 2018-03-21* Version: 1.00* Project: ForwardCom library libc.li* Description: getchar function. Read single character from stdin* C declaration: int getchar(void);** Copyright 2018 GNU General Public License http://www.gnu.org/licenses*****************************************************************************/code section execute align = 4_getchar function public reguse = 1sys_call(1, 0x120) // system call getcharreturn_getchar endcode end
Go to most recent revision | Compare with Previous | Blame | View Log
