Assembly language instruction is the symbolic of the machine instruction, and the machine directive has the direct correspondence relation, therefore the assembly language also has the difficulty to study difficult to use, error prone, the maintenance difficulty and so on shortcoming.
But the assembly language also has its own advantages: direct access to the system interface, assembler translation into the machine language program of high efficiency.
From a software engineering perspective, assembly language is used only when high-level languages do not meet design requirements or do not have the technical performance to support a particular function, such as special input and output.
1 Packagecom.tabletest;2 ImportJava.io.FileInputStream;3 ImportJava.io.FileOutputStream;4 Importjava.io.IOException;5 ImportJava.io.File;6 7 Public classtabletext_26 {8 Public Static voidMain (string[] args) {9Tabletext_24 t=Newtabletext_24 ();Ten t.filecopy (); One } A Public voidfileCopy () { -FileInputStream input =NULL; -FileOutputStream output =NULL; the - Try { - -input =NewFileInputStream (NewFile ("H://borter.txt")); +Output =NewFileOutputStream (NewFile ("H://borter2.txt")); - + byte[] bt =New byte[1024]; A intRealbyte = 0; at - while((Realbyte = Input.read (BT)) > 0) { - - -Output.write (bt,0, realbyte); - } in - output.close (); to}Catch(Exception e) { + e.printstacktrace (); -}finally { the Try { * if(Input! =NULL) { $ input.close ();Panax Notoginseng } - if(Output! =NULL) { the output.close (); + } A}Catch(IOException e) { the e.printstacktrace (); + } - } $ } $}
Assembly language instruction is symbolic of machine instruction