<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title><![CDATA[]]></title>
<link>http://blog.pfan.cn/hofy</link>
<description>编程爱好者博客</description>
<language>zh-cn</language>
			<item>
		<title><![CDATA[编译原理课程设计，词法自动机。]]></title>
		<link>http://blog.pfan.cn/hofy/14805.html</link>
		<description><![CDATA[//编译原理课程设计，词法自动机。
import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.event.*;import java.io.*;import java.util.*;class frame extends JFrame implements ActionListener{&nbsp;JButton button1=new JButton("打开现有文件");&nbsp;JButton button2=new JButton("现场输入文件");&nbsp;Choice ch=new Choice();&nbsp;JButton button=new JButton("执行");&nbsp;TextArea ta=new TextArea();&nbsp;TextArea tb=new TextArea();&nbsp;JFileChooser chooser=new JFileChooser();&nbsp;FileInputStream readfile=null;&nbsp;&nbsp;int b;&nbsp;byte buffer[]=new byte[25000];&nbsp;String str=null;&nbsp;String id[]={"asm","cout","main","FALSE","TRUE","include","boolean","default","float","operator","abs","static_cast","union","auto","delete","for","private","struct","unsigned","bool","do","friend","protected","switch","using","break","double","goto","public","template","virtual","case","dynamic_cast","if","register","this","void","catch","else","inline","reinterpret_cast","throw","volatile","char","enum","int","]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 19:19:00</pubDate>
		</item>
				<item>
		<title><![CDATA[中央空调模拟器(客户端全面版)(无图片)]]></title>
		<link>http://blog.pfan.cn/hofy/14804.html</link>
		<description><![CDATA[import java.awt.*;import java.awt.event.*;import java.net.*;import javax.swing.*;import javax.swing.event.*;import java.io.*;import java.util.*;
public class ktclient{&nbsp;public static void main(String args[])&nbsp;{&nbsp;&nbsp;jiemian j=new jiemian();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}}
class jiemian extends JFrame implements ActionListener{&nbsp;String[] wsettem={ "初使状态","18.0 ℃","19.0 ℃","20.0 ℃","21.0 ℃","22.0 ℃","23.0 ℃","24.0 ℃","25.0 ℃","25.0 ℃","26.0 ℃","27.0 ℃","28.0 ℃","29.0 ℃","30.0 ℃","31.0 ℃","32.0 ℃"&nbsp; };&nbsp;&nbsp;&nbsp;JButton connect=new JButton("打开");&nbsp;JButton disconnect=new JButton("关上");&nbsp;JButton settem=new JButton("调节温度");&nbsp;&nbsp;JPanel jp=new JPanel();&nbsp;JPanel jpwdj=new JPanel();&nbsp;&nbsp;JTextField jtconnect=new JTextField();&nbsp;JComboBox jcbsettem1=new JComboBox(wsettem);&nbsp;&nbsp;JLabel title=new JLabel("中央空调管理系统客户端程序");&nbsp;JTextArea ltnr=new JTextArea();&nbsp;&nbsp;JLabel jl1=new JLabel("当前温度");&nbsp;JLabel jl2=new JLab]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 19:17:00</pubDate>
		</item>
				<item>
		<title><![CDATA[中央空调模拟器(客户端简单版)]]></title>
		<link>http://blog.pfan.cn/hofy/14803.html</link>
		<description><![CDATA[//中央空调模拟器的客户端
import java.net.*;import javax.swing.*;import javax.swing.event.*;import java.awt.*;import java.awt.event.*;import java.io.*;public class c{&nbsp;public static void main(String args[])&nbsp;{&nbsp;&nbsp;c_win w=new c_win();&nbsp;&nbsp;w.setVisible(true);&nbsp;}}class c_win extends JFrame implements ActionListener{&nbsp;&nbsp;Label label1=new Label("房间号:");&nbsp;TextField tf1=new TextField();&nbsp;Label label2=new Label("目标温度:");&nbsp;TextField tf2=new TextField();&nbsp;Label label3=new Label("当前温度：");&nbsp;TextField tf3=new TextField();&nbsp;Button button1=new Button("连接");&nbsp;Button button2=new Button("取消");&nbsp;Button button3=new Button("保持");&nbsp;Button button4=new Button("改变");&nbsp;String s1=null,s2=null;&nbsp;c_win()&nbsp;{&nbsp;&nbsp;Container c=this.getContentPane();&nbsp;&nbsp;c.setLayout(new GridLayout(5,3));&nbsp;&nbsp;&nbsp;&nbsp;c.add(label1);&nbsp;&nbsp;&nbsp;&nbsp;c.add(tf1);&nbsp;&nbsp;&nbsp;&nbsp;c.add(label2);&nbsp;&nbsp;&nbsp;&nbsp;c.add(tf2);&nbsp]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 19:15:00</pubDate>
		</item>
				<item>
		<title><![CDATA[中央空调模拟器(服务器端)]]></title>
		<link>http://blog.pfan.cn/hofy/14802.html</link>
		<description><![CDATA[//中央空调模拟器的服务器端，最简模拟客户端为c.java
import javax.swing.*;import javax.swing.event.*;import javax.swing.Timer;import java.awt.*;import java.awt.event.*;import java.io.*;import java.net.*;import java.util.*;class dialog extends JDialog implements ActionListener{&nbsp;JLabel label;&nbsp;JPanel p1,p2;&nbsp;JButton button1,button2;&nbsp;JFrame f;&nbsp;boolean flag=false;&nbsp;dialog(JFrame f,String t,String s,boolean m)&nbsp;{&nbsp;&nbsp;super(f,t,m);&nbsp;&nbsp;this.f=f;&nbsp;&nbsp;label=new JLabel(s);&nbsp;&nbsp;p1=new JPanel();&nbsp;&nbsp;p2=new JPanel();&nbsp;&nbsp;button1=new JButton("确定");&nbsp;&nbsp;button2=new JButton("取消");&nbsp;&nbsp;p1.add(label);&nbsp;&nbsp;p2.add(button1);&nbsp;&nbsp;button1.addActionListener(this);&nbsp;&nbsp;p2.add(button2);&nbsp;&nbsp;button2.addActionListener(this);&nbsp;&nbsp;this.getContentPane().add(p1,BorderLayout.CENTER);&nbsp;&nbsp;this.getContentPane().add(p2,BorderLayout.SOUTH);&nbsp;&nbsp;this.getContentPane().setVisible(true);&nbsp;&nbsp;this.setModal(]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 19:14:00</pubDate>
		</item>
				<item>
		<title><![CDATA[UTF8编码解码]]></title>
		<link>http://blog.pfan.cn/hofy/14801.html</link>
		<description><![CDATA[{*******************************************************************************
&nbsp; UTF-8就是以8位为单元对UCS进行编码。从UCS-2到UTF-8的编码方式如下：
&nbsp; UCS-2编码(16进制) UTF-8 字节流(二进制) &nbsp; 0000 - 007F 0xxxxxxx&nbsp; 0080 - 07FF 110xxxxx 10xxxxxx&nbsp; 0800 - FFFF 1110xxxx 10xxxxxx 10xxxxxx
&nbsp; 例如“汉”字的Unicode编码是6C49。6C49在0800-FFFF之间，所以肯定要用3字节模板了：1110xxxx 10xxxxxx 10xxxxxx。将6C49写成二进制是：0110 110001 001001， 用这个比特流依次代替模板中的x，得到：11100110 10110001 10001001，即E6 B1 89。
*******************************************************************************}
unit uUnicodeUtils;
interfaceuses SysUtils, windows;
function Gb2Utf8(const GbStr:String):String;function Utf82Gb(const Utf8Str:String):String;
implementation
function Gb2Utf8(const GbStr:String):String;var&nbsp; wideStr:array[0..2048] of WideChar;&nbsp; SourceLength:integer;&nbsp; DoneLength:integer;&nbsp; AscNo:integer;&nbsp; Byte1,Byte2,Byte3:integer;begin&nbsp; Result := '';&nbsp; //不做变化&nbsp; //Result:=GbStr;&nbsp; //exit;
&nbsp; SourceLength := Len]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 19:10:00</pubDate>
		</item>
				<item>
		<title><![CDATA[写日志的接口]]></title>
		<link>http://blog.pfan.cn/hofy/14800.html</link>
		<description><![CDATA[unit uProgLog;
interface
uses&nbsp; Windows, SysUtils, SyncObjs;
const&nbsp; C_LOG_LEVEL_TRACE&nbsp;&nbsp; = $00000001;&nbsp; C_LOG_LEVEL_WARNING = $00000002;&nbsp; C_LOG_LEVEL_ERROR&nbsp;&nbsp; = $00000004;type&nbsp; EnumSeverity = (TraceLevel, WarningLevel, ErrorLevel, LogLevel);
&nbsp; function SeverityDesc(severity: EnumSeverity): string;
type&nbsp; TLogFile = class&nbsp; private&nbsp;&nbsp;&nbsp; FLogKeepDays: Integer; //日志保存时间&nbsp;&nbsp;&nbsp; FLogLevel: DWORD;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //日志级别&nbsp;&nbsp;&nbsp; FLogPath: string;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //日志保存路径，以"\"结尾&nbsp;&nbsp;&nbsp; FLogAppName: string;&nbsp;&nbsp; //应用程序名(日志文件前缀)
&nbsp;&nbsp;&nbsp; FCsWriteLogFile: TCriticalSection;&nbsp;&nbsp;&nbsp; FLogFile: TextFile;&nbsp;&nbsp;&nbsp; //日志文件句柄&nbsp;&nbsp;&nbsp; FLogOpened: Boolean;&nbsp;&nbsp; //日志文件是否打开&nbsp;&nbsp;&nbsp; FFileTimeStamp: TTimeStamp;&nbsp; //当前日志文件创建或打开时间
&nbsp;&nbsp;&nbsp; function GetLogKeepDays(): Integer;&nbsp;&nbsp;&nbsp; procedure Se]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 18:58:00</pubDate>
		</item>
				<item>
		<title><![CDATA[读写注册表的接口程序]]></title>
		<link>http://blog.pfan.cn/hofy/14799.html</link>
		<description><![CDATA[替换掉红色部分
unit uReadWriteReg;
interface
uses&nbsp; registry, Windows;
Const&nbsp; SOFT_NAME = 'ScFltSearch';
&nbsp; function OpenRootKey(var Reg: TRegistry; canCreate: boolean): boolean;&nbsp; procedure SetReg(Key: string; Value: string); overload;&nbsp; procedure SetReg(Key: string; Value: integer); overload;&nbsp; procedure SetReg(Key: string; Value: boolean); overload;&nbsp; function GetReg(Key: string; var Value: string; default: string = ''): boolean; overload;&nbsp; function GetReg(Key: string; var Value: integer; default: integer = 0): boolean; overload;&nbsp; function GetReg(Key: string; var Value: boolean; default: boolean = false): boolean; overload;implementation
function OpenRootKey(var Reg: TRegistry; canCreate: boolean): boolean;begin&nbsp; result := true;&nbsp; Reg := TRegistry.Create;&nbsp; Reg.RootKey := HKey_CURRENT_USER;&nbsp; if not Reg.KeyExists('SoftWare\' + SOFT_NAME) then&nbsp; begin&nbsp;&nbsp;&nbsp; Reg.OpenKey('SoftWare\' + SOFT_NAME, true);&nbsp;&nbsp;&n]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 18:56:00</pubDate>
		</item>
				<item>
		<title><![CDATA[预防打开多个窗口的小程序]]></title>
		<link>http://blog.pfan.cn/hofy/14798.html</link>
		<description><![CDATA[以下红字部分是比一般程序多加入的部分,在编写时把相应部分加入工程文件的原代码并替换相应部分即可:
program HotelSMS;
uses&nbsp; Windows,&nbsp; Forms,&nbsp; fmHotelSMS in 'fmHotelSMS.pas' {fmHotelSMSF},&nbsp; dmData in 'dmData.pas' {dmDataM: TDataModule},&nbsp; uReadWriteReg in 'uReadWriteReg.pas',&nbsp; uProgLog in 'uProgLog.pas';
{$R *.res}
const&nbsp; strCaption = '酒店系统短信发送';var&nbsp; MainHWnd,ChildHWnd: THandle;begin&nbsp; //以查找窗口以保证只能同时启动一个实例&nbsp; MainHWnd := FindWindow('TApplication', strCaption);&nbsp; if IsWindow(MainHWnd) then&nbsp; begin&nbsp;&nbsp;&nbsp; ChildHWnd := GetLastActivePopUp(MainHWnd);&nbsp;&nbsp;&nbsp; //激活已有的实例&nbsp;&nbsp;&nbsp; SetForeGroundWindow(MainHWnd);&nbsp;&nbsp;&nbsp; if (IsWindow(ChildHWnd)) and (ChildHWnd &lt;&gt; MainHWnd) and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsWindowVisible(ChildHWnd) and IsWindowEnabled(ChildHWnd) then&nbsp;&nbsp;&nbsp; begin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetForeGroundWindow(ChildHWnd);&nbsp;&nbsp;&nbsp; end;&nbsp;&nbsp;&nbsp; Halt;&nbsp; end;
&nbsp; Application.Initialize]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2006-05-24 18:42:00</pubDate>
		</item>
				<item>
		<title><![CDATA[多位数乘法的汇编实现（二）]]></title>
		<link>http://blog.pfan.cn/hofy/3947.html</link>
		<description><![CDATA[addition proc near
start3:sub ax,ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sub dx,dx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov bx,offset op1
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov al,[bx+1]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov si,ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov bx,offset op2
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmp byte ptr[bx],al&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jbe calc
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov di,ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov al,[bx+1]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov si,ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov ax,0
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;push ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;popf
;------------------------------------------------------初始化运算
calc:&nbsp;&nbsp;mov al,[bx+si+2]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov dl,[bx+di+2]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adc al,dl
;--------------------]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2005-08-19 17:31:00</pubDate>
		</item>
				<item>
		<title><![CDATA[多位数乘法的汇编实现（一）]]></title>
		<link>http://blog.pfan.cn/hofy/3946.html</link>
		<description><![CDATA[.model small
.stack 64
.data
op1 db 11,?,11 dup(0)
op2 db 11,?,11 dup(0)
pro1 db 12 dup(0),'$'
pro2 db 11 dup(0),'$'
pro3 db 22 dup(0),'$'
pro4 db 11 dup(0),'$'
pro5 db 11 dup(0),'$'
msg1 db 0dh,0ah,'**************************************************************'
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;db 0dh,0ah,'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This calculator only can bear 10 digits of operand!'
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;db 0dh,0ah,'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;And the oprand shuld be no sign!'
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;db 0dh,0ah,'**************************************************************',0dh,0ah,'$'
msg2 db 0dh,0ah,'Please input the FIRST operand(Press ENTER to finish):','$'
msg3 db 0dh,0ah,'Please input the SECOND operand(Press ENTER to finish):','$'
msg4 db 0dh,0ah,'The summation is: ','$'
msg5 db 0dh,0ah,'The margin is:&nbsp;&nbsp;&nbsp;&nbsp;','$'
msg6 db 0dh,0ah,'The product is:&nbsp;&nbsp;&nbsp;',]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2005-08-19 17:31:00</pubDate>
		</item>
				<item>
		<title><![CDATA[汇编语言实现二叉树的存储和遍历（三）]]></title>
		<link>http://blog.pfan.cn/hofy/3883.html</link>
		<description><![CDATA[;------------------------------------------------------------------------------------------------------------------------------------
midrr proc near
start10:push ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;push dx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmp byte ptr[si+2],0
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jz exit3
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;push si
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov si,offset binary
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add si,cx 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add cx,3
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call midr
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pop si
exit3: sub si,3
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pop dx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pop ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ret
midrr endp
;------------------------------------------------------------]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2005-08-17 17:12:00</pubDate>
		</item>
				<item>
		<title><![CDATA[汇编语言实现二叉树的存储和遍历（四）]]></title>
		<link>http://blog.pfan.cn/hofy/3882.html</link>
		<description><![CDATA[prompt proc near&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;give the&nbsp;&nbsp;prompt information
start5:push ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;push dx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov ax,0900h
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov dx,offset hey2
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int 21h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov ax,0200h
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov dl,[si]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int 21h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov ax,0900h
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov dx,bx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int 21h
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2005-08-17 17:12:00</pubDate>
		</item>
				<item>
		<title><![CDATA[汇编语言实现二叉树的存储和遍历（三）]]></title>
		<link>http://blog.pfan.cn/hofy/3881.html</link>
		<description><![CDATA[;---------------------------------------------------------
Inroot proc near&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;the procedure of input root
start2:push ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;push dx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CMP CX,186
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jz quit
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov [si],al
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call leftchild
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call rightchild
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pop ax
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pop dx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ret
quit: mov ax,0900h
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mov dx,offset hey9
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2005-08-17 17:09:00</pubDate>
		</item>
				<item>
		<title><![CDATA[汇编语言实现二叉树的存储和遍历（一）]]></title>
		<link>http://blog.pfan.cn/hofy/3880.html</link>
		<description><![CDATA[;；；；；；；；；；；；；；；；；二叉树的遍历


.model small
.stack 64
.data
;--------------------------------------------------------------------------------------------------------------------------------
binary db 63 dup (0,0,0)
hey1 db 'Please input the root of the binary:',0dh,0ah,'$'
hey2 db 0dh,0ah,'Does ',27h,'$'
hey3 db 27h,' have a leftchild?(If it no leftchild,please press ENTER)',0dh,0ah,'$'
hey4 db 27h,' have a rightchild?(If it no rightchild,please key in ENTER)',0dh,0ah,'$'
hey5 db 'The first root traversing:',0dh,0ah,'$'
hey6 db 'The middle root traversing:',0dh,0ah,'$'
hey7 db 'The last root traversing:',0dh,0ah,'$'
hey8 db 0dh,0ah,'$'
hey9 db 0dh,0ah,'The input is over!','$'
hey10 db 0dh,0ah,'Pree anykey to continue,ESC to finish...',0dh,0ah,'$'
;---------------------------------------------------------------------------------------------------------------------------------
.code
main proc far&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n]]></description>
		<author><![CDATA[hofy]]></author>
		<pubDate>2005-08-17 17:06:00</pubDate>
		</item>
		</channel>
</rss>