- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
最近,在我的计算机类(class)中,我们说过可以使用uVision ARM编译器。现在,我已经从事Java多年了,并且了解如何编程,但是ARM给我带来了麻烦。
我要创建的程序是将大写字母转换为小写字母,反之亦然的程序。
我的代码如下。除两个if语句外,其他所有内容均由老师提供。
AREA mydata,DATA
output SPACE 50
AREA mycode,CODE,ALIGN=2
THUMB
EXPORT __main
input DCB "The QUICK brown fOx",0
DCD 0
__main PROC
LDR R0,=input ;R0 has input ptr
LDR R1,=output ;R1 has output ptr
loop LDRB R2,[R0] ;R2 has the next character
CBZ R2,exit ;if r2 == 0 go to exit
STRB R2,[R1] ;store R2 @ R1 (output ptr)
if(R1>91 )
SUB R1, #32
else if(R1<91)
ADD R1, #32
B loop ;do the next character
exit MOV R2,#0 ;put in my byte of zero
STRB R2,[R1]
done B done ;end
ENDP
END
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
assembling (fileName).s...
(fileName).s(12): error: A1854E: Unknown opcode 'CBZ', maybe wrong target CPU?
(fileName).s(14): error: A1163E: Unknown opcode if(R1>91 , expecting opcode or Macro
(fileName).s(15): error: A1859E: Flag preserving form of this instruction not available
(fileName).s(16): error: A1157E: Syntax error following directive
(fileName).s(17): error: A1859E: Flag preserving form of this instruction not available
(fileName).s(20): error: A1859E: Flag preserving form of this instruction not available
".\Objects\new.axf" - 6 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00
最佳答案
您应该检查要编译的 objective-c PU。 CBZ仅在ARMv6T2及更高版本中可用,如其documentation所示。
关于assembly - 使用uVision ARM编译器的未知操作码 'CBZ',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48960410/
最近,在我的计算机类(class)中,我们说过可以使用uVision ARM编译器。现在,我已经从事Java多年了,并且了解如何编程,但是ARM给我带来了麻烦。 我要创建的程序是将大写字母转换为小写字
我想读取 .CBZ 存档中的图像并将它们存储在 ArrayList 中。我尝试了以下解决方案,但至少有 2 个问题。 我在将 10-15 个图像添加到 ArrayList 后出现内存不足错误 必须有更
我希望在 iOS6 中集成打开/查看 CBZ/CBR 文件(像 UIWebView 这样读取 PDF 文件的简单查看器也可以)。 是否有任何库(商业或免费)可用于打开这些文件类型? 提前致谢 最佳答案
第一次发帖,大家好!首先让我说我是编程方面的菜鸟。我了解非常基本的东西,但是在检查退出代码或适当的术语时,我不知所措。显然我的 searchfoo 在这方面真的很弱,我想这是一个术语问题。 预先感谢您
我目前正在尝试解压缩一个 .cbz 文件(基本上是一个 .zip 文件)并将该 .cbz 文件中包含的所有 .png 图像存储到一个 std::vector 中。 . 我正在使用 QuaZip 来执行
我是一名优秀的程序员,十分优秀!