- 博客(9)
- 收藏
- 关注
原创 Aurix读取A11寄存器,基于Tasking环境
最近在研究Aurxi的CSA机制,需要读取A11寄存器的值,一开始以为使用mfcr指令就可以读到,但实际验证下来无法读取,后来查阅资料,发现得使用汇编代码才能读取,现将代码贴出来。基于Tasking编译器,其他编译器代码不兼容。其他地址寄存器也可照此方法读取,数据寄存器的话将汇编指令"mov.d"换成"mov"即可。
2023-08-08 14:56:23
213
原创 A disguised sequence (I)
Given u0 = 1, u1 = 2 and the relation 6unun+1-5unun+2+un+1un+2 = 0 calculate un for any integer n >= 0.Examplesfct(n) returns un: fct(17) -> 131072, fct(21) -> 2097152
2018-01-04 10:25:07
243
原创 findSum
findSum Upto and including n, this function will return the sum of all multiples of 3 and 5.For example:findSum(5) should return 8 (3 + 5)findSum(10) should return 33 (3 + 5 + 6 + 9 + 10)
2018-01-03 17:22:18
471
原创 Python装numpy教程
Python装numpy教程先装Python,然后在 https://pypi.python.org/pypi/numpy下找到对应的numpy安装包。下载下来,放到Python安装目录下的Scripts文件夹里,比如我的安装目录是C:\Python27\Scripts 拷贝到里面。然后在系统环境变量Path里面添加这个路径。下载下来的文件名是numpy-1.12.1rc1-cp27-none
2017-03-11 21:47:45
676
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人