MOVC(Move
Code)读取程序存储器数据表格的数据传送丛运;
MOVX
(Move
External
RAM)
对外部RAM的数据传送;
XCH
(Exchange)
字节交换;
XCHD
(Exchange
low-order
Digit)
低半字节交换;
PUSH
(Push
onto
Stack)
入栈;
POP
(Pop
from
Stack)
出栈;
(2)算术运算类指令(8种助记符)
ADD(Addition)
加法;
ADDC(Add
with
Carry)
带进位加法;
SUBB(Subtract
with
Borrow)
带借位减法;
DA(Decimal
Adjust)
十进制调整;
INC(Increment)
加1;
DEC(Decrement)
减1;
MUL(Multiplication、Multiply)
乘法;
DIV(Division、Divide)
除法;
(3)逻辑运算类指令(10种助记符)
ANL(AND
Logic)
逻辑与;
ORL(OR
Logic)
逻辑或;
XRL(Exclusive-OR
Logic)
逻辑异或;
CLR(Clear)
清零;
CPL(Complement)
取反;
RL(Rotate
left)
循环左移;
RLC(Rotate
Left
throught
the
Carry
flag)
带进闹锋位循环左移;
RR(Rotate
Right)
循环右移;
RRC
(Rotate
Right
throught
the
Carry
flag)
带进位循环右移;
SWAP
(Swap)
低4位与高4位交换;
(4)控制转移类指令(17种助记符)
ACALL(Absolute
subroutine
Call)子程序绝对调用;
LCALL(Long
subroutine
Call)子程序长调用;
RET(Return
from
subroutine)子程序返回;
RETI(Return
from
Interruption)中断返回;
SJMP(Short
Jump)短转移;
AJMP(Absolute
Jump)绝对转移;
LJMP(Long
Jump)长转移;
CJNE
(Compare
Jump
if
Not
Equal)比较不相等则转移;
DJNZ
(Decrement
Jump
if
Not
Zero)减1后不渗弯梁为0则转移;
JZ
(Jump
if
Zero)结果为0则转移;
JNZ
(Jump
if
Not
Zero)
结果不为0则转移;
JC
(Jump
if
the
Carry
flag
is
set)有进位则转移;
JNC
(Jump
if
Not
Carry)无进位则转移;
JB
(Jump
if
the
Bit
is
set)位为1则转移;
JNB
(Jump
if
the
Bit
is
Not
set)
位为0则转移;
JBC(Jump
if
the
Bit
is
set
and
Clear
the
bit)
位为1则转移,并清除该位;
NOP
(No
Operation)
空 *** 作;
(5)位 *** 作指令(1种助记符)
SETB(Set
Bit)
位
置1
基本是全的,个别有的没有找到。虽说用到的机会很小,但是对于理解指令功能很有帮住
package file.system.demo.exceptionimport java.io.File
import java.io.FileNotFoundException
import java.io.FileWriter
import java.io.IOException
import java.util.ArrayList
import java.util.Collections
import java.util.List
import java.util.Scanner
import java.util.regex.Matcher
import java.util.regex.Pattern
public class FileManpulation {
public static List<String > getLowerCaseWords(File file) {
Scanner scanner = null
Pattern pattern = Pattern.compile("[a-zA-Z]+")
String text = ""
List<String > words = new ArrayList<>()
try {
scanner = new Scanner(file)
} catch (FileNotFoundException e) {
e.printStackTrace()
}
if(scanner!=null){
while(scanner.hasNextLine()){
text+=scanner.nextLine()
}
scanner.close()
}
//System.out.println(text)
Matcher matcher = pattern.matcher(text)
while (matcher.find()){
words.add(matcher.group().toLowerCase())
}
return words
}
/**
*
* @param words
* @param file 输入文件
* void
*/
public 并冲static void WriteToFile(List<String> words ,File file){
Collections.sort(words)//排序
FileWriter writer=null
try 槐睁{
writer = new FileWriter(file)
for (String word : words) {
writer.write(word+" ")
}
} catch (IOException e) {
e.printStackTrace()
}
finally {
if(writer!=null){
try {
writer.close()
} catch (IOException e) {
e.printStackTrace()
}
}
}
}
static class InnerTest{
public static void main(String[] args) {
File 铅蔽岁file = new File("D:\\test.txt")
List<String> words=getLowerCaseWords(file)
WriteToFile(words,new File("D:\\in.txt"))
}
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)