由于我自己的讨论,我自己开发了汇编程序。我用它来设计其他需要在某些但不是全部使用汇编语言的系统。
令我惊讶的是,stm8s中的一些内容类似于8051.我可以将51使用的一些程序复制到stm8s。这让我很好奇,如果我们可以将程序从51复制到stm8s来执行。这仅在机器代码级别。你怎么看待这件事?
我开发的汇编语言在概念上对所有cpu都是通用的,包括
ARM。看看你能理解这个:
(8080 AE 07 00)X = 700
(8083 7F)(X)= 0
(8084 5C)X +
(8085 A3 07 FF)X:7FF
(8088 23 F9)8083 U< =?
(808A AE 07 FE)X = 7FE
(808D 94)SP = X.
(808E CC 80 92)PC = 8092
#汇编语言
以上来自于谷歌翻译
以下为原文
I've developped the assembler myself due to my own interse
ting. I use it to design other system which needs to use assembly language in some but not all.
To my suprise, some inrtructions in stm8s are resemble to 8051. I can copy some of the program used by 51 to stm8s. This incurred my curiousity that if we can copy the program from 51 to stm8s to execute. This is only in machine code level. What do you think about this?
The assembly language that I developped is conceptually universal to all the cpu's, including ARM. See if you could understand this:
( 8080 AE 07 00 ) X=700
( 8083 7F ) (X)=0
( 8084 5C ) X+
( 8085 A3 07 FF ) X:7FF
( 8088 23 F9 ) 8083 U<=?
( 808A AE 07 FE ) X=7FE
( 808D 94 ) SP=X
( 808E CC 80 92 ) PC=8092
#assembly-language