OpenCores
URL https://opencores.org/ocsvn/hpc-16/hpc-16/trunk

Subversion Repositories hpc-16

[/] [hpc-16/] [trunk/] [impl0/] [asm/] [prog1.txt] - Rev 15

Compare with Previous | Blame | View Log

################################
## this program test:
## mov, li and hlt instructions
################################
0:li r0, 5555h
4:mov r1, r0
6:mov sp, r1
8:mov r5, sp
10:hlt

################################
## binary conversion
################################
#
#li r0, 5555h
0:01001_001_0000_0000
2:0101_0101_0101_0101

#mov r1, r0
4:00000_001_0001_0000

#mov sp, r1
6:00000_010_0000_0001

#mov r5, sp
8:00000_100_0101_0000

#hlt
10:11111_000_0000_0000

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.