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

Subversion Repositories forwardcom

[/] [forwardcom/] [libraries/] [putchar_light.as] - Blame information for rev 105

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 105 Agner
/*********************************  putchar_light.as **************************
2
* Author:        Agner Fog
3
* date created:  2021-05-16
4
* Last modified: 2021-05-16
5
* Version:       1.11
6
* Project:       ForwardCom library libc_light.li
7
* Description:   putchar: print a character to stdout
8
* This version is for CPUs with limited capabilities
9
* C declaration: int putchar(int character)
10
*
11
* Copyright 2021 GNU General Public License http://www.gnu.org/licenses
12
******************************************************************************/
13
 
14
code section execute align = 4                   // code section
15
 
16
// Print a single character to stdout
17
_putchar function public reguse = 1, 0
18
int8 output(r0, r0, 10);
19
return
20
_putchar 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.