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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [cr16/] [hello.ms] - Blame information for rev 330

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
# output(): Hello world!\n
2
# mach(): cr16
3
 
4
        .globl _start
5
_start:
6
 
7
# write (hello world)
8
        movw $1,r2
9
        movd $hello,(r4,r3)
10
        loadw length,r5
11
        movw $0x404,r0
12
        excp 8
13
# exit (0)
14
        movw $0,r2
15
        movw $0x410,r0
16
        excp 8
17
 
18
length: .long 14
19
hello:  .ascii "Hello world!\r\n"

powered by: WebSVN 2.1.0

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