Programming 笔记

工作中遇到的问题就记载这里

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年8月2日

摘要: 自己写的,可以实现练习题的要求,而且个人感觉比网上常见的答案还精炼一些。assumecs:codesg,ds:datadatasegmentdb'welcometomasm!'db00000010B,00100100B,01110001Bdw0b86eh,0b878h,0b882hdataendscodesgsegmentstart:movcx,3s1:movax,data;setdataaddressmovds,axmovsi,cx;setlineindsmovah,data:[15+si];getfont00000010B,00100100B,01110001BADDsi, 阅读全文
posted @ 2011-08-02 19:13 IT 笔记 阅读(361) 评论(0) 推荐(0) 编辑

2011年7月22日

摘要: 题目要求将代码补全,JMP 可以回到程序开始位置。下面是网上的答案, 运行是正确的, 但我有个疑惑是红色标志的代码好像是可有可无,我去掉这行一样是满足要求。不知道这行的用意是什么?assume cs:codedata segmentdd 12345678Hdata endscode segment start: mov ax, data mov ds, ax mov bx, 0 mov [bx], bx mov [bx+2], cs jmp word ptr ds:[0] mov ax, 4c00h int 21hcode endsend start 阅读全文
posted @ 2011-07-22 04:43 IT 笔记 阅读(1474) 评论(1) 推荐(0) 编辑

2011年7月7日

摘要: 程序时,我在学习“汇编语言程序设计(第二版)王爽” 第四章实验3程序时,出现上面的错误信息。将SP 该为16的倍数就好了。 猜想原因和现在的机器是32 位。具体原因不理解。有明白同学请不吝赐教 阅读全文
posted @ 2011-07-07 05:19 IT 笔记 阅读(3786) 评论(1) 推荐(0) 编辑

2011年2月4日

摘要: The default selectfile's selectpattern only support on exention name.For example, command below can only retrieve jpg image.If you want both jpg and gif, you need two clause and combine the outputs. [代码]Alternatively, you can use LINQ and regular expression like below, but the code has issue when im 阅读全文
posted @ 2011-02-04 11:21 IT 笔记 阅读(238) 评论(0) 推荐(0) 编辑

2010年7月24日

摘要: I just begin to learn something about Spring.Net, heaps of probem are waiting for me. The very first one has been solved. It is an error saying “Cannot create OBJ folder” when I try to strat the move... 阅读全文
posted @ 2010-07-24 15:33 IT 笔记 阅读(169) 评论(0) 推荐(0) 编辑

2010年3月22日

摘要: Unix text file uses linefeed only to indicate end of line, the .net streamreader's readline function is not working with unix text file.I made a small wrapper for StreamReader class to make it is work... 阅读全文
posted @ 2010-03-22 12:30 IT 笔记 阅读(380) 评论(0) 推荐(0) 编辑

2010年3月19日

摘要: My environment is Crywin in windows vista.What I did is download autotrace and unzip it and copy everything into C:\cygwin\usr\local\binThen you can see the menu in element -> autotrace. 阅读全文
posted @ 2010-03-19 19:15 IT 笔记 阅读(383) 评论(0) 推荐(0) 编辑

2009年9月15日

摘要: Environment gs870w32.exe, download from http://sourceforge.net/projects/ghostscript/ My program code and output Useful tutorial http://csc.ocean-pioneer.com/docum/csc_postscript.html http://www-cdf.... 阅读全文
posted @ 2009-09-15 19:24 IT 笔记 阅读(254) 评论(0) 推荐(0) 编辑

2009年9月8日

摘要: Add reference System.Configuration 阅读全文
posted @ 2009-09-08 14:09 IT 笔记 阅读(130) 评论(0) 推荐(0) 编辑

2009年9月5日

摘要: It is quite annoying when a .net program try to update user interface control from a seperate long run task thread.The runtime give me exception “Control control name accessed from a thread othe... 阅读全文
posted @ 2009-09-05 13:44 IT 笔记 阅读(423) 评论(0) 推荐(0) 编辑