页面顶部 Top


最后修改: October 30 2020 14:33:12
文件:  root - programs - 80x86_assembly_com - 2008 - 5 - rot13.com
大小: 0.25KB

  1. @rem This file is generated by machine... at 2024-05-09 49:05:48
  2. @rem .COM file to .BAT convertor,,, programmed by Zhihua Lai, 2008
  3. @rem The .COM File Generated is size of 259 bytes.
  4. @if exist %0.bat %0.bat
  5. @debug < %0
  6. @dir /l rot13.com
  7. @goto eof
  8. e0100 e9 c4 00 52 6f 74 20 31 33 20 55 74 69 6c 69 74
  9. e0110 79 3a 20 4e 6f 20 65 6e 6f 75 67 68 20 70 61 72
  10. e0120 61 6d 65 74 65 72 73 2e 0d 0a 24 50 61 72 61 6d
  11. e0130 65 74 65 72 3a 20 41 6e 79 20 53 74 72 69 6e 67
  12. e0140 2e 0d 0a 24 50 72 6f 67 72 61 6d 6d 65 64 20 62
  13. e0150 79 20 5a 68 69 68 75 61 20 4c 61 69 2c 20 32 30
  14. e0160 30 38 20 41 70 72 69 6c 2c 20 6a 75 73 74 20 66
  15. e0170 6f 72 20 66 75 6e 2e 0d 0a 24 6e 6f 70 71 72 73
  16. e0180 74 75 76 77 78 79 7a 61 62 63 64 65 66 67 68 69
  17. e0190 6a 6b 6c 6d 4e 4f 50 51 52 53 54 55 56 57 58 59
  18. e01a0 5a 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d b4 09
  19. e01b0 8d 16 03 01 cd 21 8d 16 2b 01 cd 21 8d 16 44 01
  20. e01c0 cd 21 b8 01 4c cd 21 be 80 00 32 ed 8a 0c e3 de
  21. e01d0 46 fe c9 46 8a 04 3c 41 72 1c 3c 7a 77 18 3c 61
  22. e01e0 73 0d 3c 5a 77 10 8d 1e 94 01 2c 41 d7 eb 07 8d
  23. e01f0 1e 7a 01 2c 61 d7 8a d0 b4 02 cd 21 e2 d5 b8 00
  24. e0200 4c cd 21
  25. n rot13.com
  26. r cx
  27. 103
  28. w
  29. q
  30. :eof

  1. ;;;; this assembly file is formated by zlai 2008 asm formatter. ;;;;
  2. ; rot 13
  3. ; programmed by zhihua lai,
  4. ; 2008 april 16, just for fun
  5.  
  6. .model tiny 
  7. code segment 
  8.   org 100h 
  9.  
  10.   start: 
  11.   jmp start1 
  12.  
  13.   msg1 db "rot 13 utility: no enough parameters.", 13, 10, "$" 
  14.   msg2 db "parameter: any string.", 13, 10, "$" 
  15.   msg3 db "programmed by zhihua lai, 2008 april, just for fun.", 13, 10, "$" 
  16.   lookup1 db "nopqrstuvwxyzabcdefghijklm" 
  17.   lookup2 db "nopqrstuvwxyzabcdefghijklm" 
  18.  
  19.   noarg: 
  20.   mov ah, 09h 
  21.   lea dx, msg1 
  22.   int 21h 
  23.   lea dx, msg2 
  24.   int 21h 
  25.   lea dx, msg3 
  26.   int 21h 
  27.   mov ax, 4c01h 
  28.   int 21h 
  29.  
  30.   start1: 
  31.   mov si, 80h 
  32.   xor chch 
  33.   mov cl, [si
  34.   jcxz noarg 
  35.   inc si 
  36.   dec cl 
  37.  
  38.   chk: 
  39.   inc si 
  40.   mov al, [si
  41.   cmp al, 'a' 
  42.   jb nochg 
  43.   cmp al, 'z' 
  44.   ja nochg 
  45.   cmp al, 'a' 
  46.   jae chglower 
  47.   cmp al, 'z' 
  48.   ja nochg 
  49.  
  50.   chgupper: 
  51.   lea bx, lookup2 
  52.   sub al, 'a' 
  53.   xlat 
  54.   jmp nochg 
  55.  
  56.   chglower: 
  57.   lea bx, lookup1 
  58.   sub al, 'a' 
  59.   xlat 
  60.  
  61.   nochg: 
  62.   mov dlal 
  63.   mov ah, 2 
  64.   int 21h 
  65.   loop chk 
  66.  
  67.   ok: 
  68.   mov ax, 4c00h 
  69.   int 21h 
  70.  
  71. code ends 
  72. end start 

评论 (0)

    当前页暂时没有评论。


最后更新: October 30 2020 14:21:12 | RSS Subscription
牛排怎么做才好吃? | <meta name="机器人" content="不索引, 跟踪" />