ST意法半导体
直播中

张小林

7年用户 182经验值
私信 关注
[问答]

STM8S操作码列表找不到

我看了但是找不到这个MCU的操作码的完整列表。我正在使用STM8S-Discovery来教我的孩子编程,从最基本的机器语言开始,然后是汇编程序,然后是C.我希望它们能够读取由高级语言生成的代码。我发现程序员手册中列出了大约80个代码,但这不是整套代码。有没有人知道是否已经发布了一整套,或者如果我创建了一整套就会有人反对。

以上来自于谷歌翻译


以下为原文




I have looked but can't find a ''complete listing of the op-codes for this MCU.  I'm using the STM8S-Discovery to teach my grand-kids programming, starting at the very basic machine language, then to assembler and then C.  I want them to be able to read the code that is generated by the high level language.   I found about 80 codes listed in the programers manual, but that is not the entire set.  Does anyone know if a full set has been published, or if anybody would object if I created one.

回帖(2)

陈伟

2018-10-25 10:54:55
我不知道这里的外围设备手册是stm8s的cpu手册
 
http://www.st.com/web/en/resource/technical/document/programming_manual/CD00161709.pdf
 
但似乎不包含写入模数转换器dac或uart或gpio的指令。我正在建立一个反汇编程序。我需要在sourceforge上发布它。我得到它来识别所有的CPU指令。但我找不到perifferal访问指令

以上来自于谷歌翻译


以下为原文





i don't know where a manual for the peripherals here is the cpu manual for the stm8s

http://www.st.com/web/en/resource/technical/document/programming_manual/CD00161709.pdf

but it appears that that does not contain the instructions for writing to the analog to digital converter dac or uart or gpio   . i am building a disassembler. i need to publish it on sourceforge. i got it to recognise all the cpu instructions. but i can't find the perifferal access instructions
举报

李淳鑫

2018-10-25 11:03:25
所有I / O都在STM8中进行内存映射。一个简单的ld(x),a可以根据x的值进行I / O.
 
 
 菲利普

以上来自于谷歌翻译


以下为原文





All I/O is memory mapped in the STM8. A simple ld (x), a can do I/O depending on the value of x.


Philipp
举报

更多回帖

发帖
×
20
完善资料,
赚取积分