页面顶部 Top


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

  1. @rem This file is generated by machine... at 2024-05-09 43:05:39
  2. @rem .COM file to .BAT convertor,,, programmed by Zhihua Lai, 2008
  3. @rem The .COM File Generated is size of 494 bytes.
  4. @if exist %0.bat %0.bat
  5. @debug < %0
  6. @dir /l b64t.com
  7. @goto eof
  8. e0100 e9 71 01 42 61 73 65 36 34 20 54 65 78 74 20 45
  9. e0110 6e 63 6f 64 65 20 55 74 69 6c 69 74 79 3a 20 4e
  10. e0120 6f 20 65 6e 6f 75 67 68 20 70 61 72 61 6d 65 74
  11. e0130 65 72 73 2e 0d 0a 24 50 61 72 61 6d 65 74 65 72
  12. e0140 3a 20 41 6e 79 20 53 74 72 69 6e 67 2e 0d 0a 24
  13. e0150 50 72 6f 67 72 61 6d 6d 65 64 20 62 79 20 5a 68
  14. e0160 69 68 75 61 20 4c 61 69 2c 20 32 30 30 38 20 41
  15. e0170 70 72 69 6c 2c 20 6a 75 73 74 20 66 6f 72 20 66
  16. e0180 75 6e 2e 0d 0a 24 41 42 43 44 45 46 47 48 49 4a
  17. e0190 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a
  18. e01a0 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70
  19. e01b0 71 72 73 74 75 76 77 78 79 7a 30 31 32 33 34 35
  20. e01c0 36 37 38 39 2b 2f 3d 00 00 00 00 00 00 00 50 2e
  21. e01d0 a0 c7 01 d0 e8 d0 e8 2e a2 ca 01 58 c3 50 51 2e
  22. e01e0 a0 c7 01 24 03 b1 04 d2 e0 2e a2 cb 01 2e a0 c8
  23. e01f0 01 b1 04 d2 e8 2e 00 06 cb 01 59 58 c3 50 51 2e
  24. e0200 a0 c8 01 24 0f d0 e0 d0 e0 2e a2 cc 01 2e a0 c9
  25. e0210 01 b1 06 d2 e8 2e 00 06 cc 01 59 58 c3 50 2e a0
  26. e0220 c9 01 24 3f 2e a2 cd 01 58 c3 53 50 52 8d 1e 86
  27. e0230 01 d7 8a d0 b4 02 cd 21 5a 58 5b c3 50 2e a0 ca
  28. e0240 01 e8 e6 ff 2e a0 cb 01 e8 df ff 2e a0 cc 01 e8
  29. e0250 d8 ff 2e a0 cd 01 e8 d1 ff 58 c3 b4 09 8d 16 03
  30. e0260 01 cd 21 8d 16 37 01 cd 21 8d 16 50 01 cd 21 b8
  31. e0270 01 4c cd 21 be 80 00 32 ed 8a 0c e3 de 46 fe c9
  32. e0280 46 8a 04 2e a2 c7 01 fe c9 e3 39 46 8a 04 2e a2
  33. e0290 c8 01 fe c9 e3 15 46 8a 04 2e a2 c9 01 e8 2e ff
  34. e02a0 e8 3a ff e8 57 ff e8 74 ff eb 39 2e c6 06 c9 01
  35. e02b0 00 e8 1a ff e8 26 ff e8 43 ff 2e c6 06 cd 01 40
  36. e02c0 b1 01 eb 20 2e c6 06 c8 01 00 2e c6 06 c9 01 00
  37. e02d0 e8 fb fe e8 07 ff 2e c6 06 cc 01 40 2e c6 06 cd
  38. e02e0 01 40 b1 01 e8 55 ff e2 97 b8 00 4c cd 21
  39. n b64t.com
  40. r cx
  41. 1ee
  42. w
  43. q
  44. :eof

  1. ;;;; this assembly file is formated by zlai 2008 asm formatter. ;;;;
  2. ; base64 text encode utility
  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 "base64 text encode 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.  
  17.   lookup db "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/=" 
  18.  
  19.   c1 db 0 
  20.   c2 db 0 
  21.   c3 db 0 
  22.  
  23.   k1 db 0 
  24.   k2 db 0 
  25.   k3 db 0 
  26.   k4 db 0 
  27.  
  28.   handle0 proc near 
  29.     push ax 
  30.     mov al, c1 
  31.     shr al, 1 
  32.     shr al, 1 
  33.     mov k1, al 
  34.     pop ax 
  35.     ret 
  36.   handle0 endp 
  37.  
  38.   handle1 proc near 
  39.     push ax 
  40.     push cx 
  41.     mov al, c1 
  42.     and al, 3 
  43.     mov cl, 4 
  44.     shl alcl 
  45.     mov k2, al 
  46.     mov al, c2 
  47.     mov cl, 4 
  48.     shr alcl 
  49.     add k2, al 
  50.     pop cx 
  51.     pop ax 
  52.     ret 
  53.   handle1 endp 
  54.  
  55.   handle2 proc near 
  56.     push ax 
  57.     push cx 
  58.     mov al, c2 
  59.     and al, 15 
  60.     shl al, 1 
  61.     shl al, 1 
  62.     mov k3, al 
  63.     mov al, c3 
  64.     mov cl, 6 
  65.     shr alcl 
  66.     add k3, al 
  67.     pop cx 
  68.     pop ax 
  69.     ret 
  70.   handle2 endp 
  71.  
  72.   handle3 proc near 
  73.     push ax 
  74.     mov al, c3 
  75.     and al, 63 
  76.     mov k4, al 
  77.     pop ax 
  78.     ret 
  79.   handle3 endp 
  80.  
  81.   putb64char proc near 
  82.     push bx 
  83.     push ax 
  84.     push dx 
  85.     lea bx, lookup 
  86.     xlat 
  87.     mov dlal 
  88.     mov ah, 2 
  89.     int 21h 
  90.     pop dx 
  91.     pop ax 
  92.     pop bx 
  93.     ret 
  94.   putb64char endp 
  95.  
  96.   pr proc near 
  97.     push ax 
  98.     mov al, k1 
  99.     call putb64char 
  100.     mov al, k2 
  101.     call putb64char 
  102.     mov al, k3 
  103.     call putb64char 
  104.     mov al, k4 
  105.     call putb64char 
  106.     pop ax 
  107.     ret 
  108.   pr endp 
  109.  
  110.   noarg: 
  111.   mov ah, 09h 
  112.   lea dx, msg1 
  113.   int 21h 
  114.   lea dx, msg2 
  115.   int 21h 
  116.   lea dx, msg3 
  117.   int 21h 
  118.   mov ax, 4c01h 
  119.   int 21h 
  120.  
  121.   start1: 
  122.   mov si, 80h 
  123.   xor chch 
  124.   mov cl, [si
  125.   jcxz noarg 
  126.   inc si 
  127.   dec cl 
  128.  
  129.   chk: 
  130.   inc si 
  131.   mov al, [si
  132.   mov c1, al 
  133.  
  134.   dec cl 
  135.   jcxz less2 
  136.   inc si 
  137.   mov al, [si
  138.   mov c2, al 
  139.  
  140.   dec cl 
  141.   jcxz less1 
  142.   inc si 
  143.   mov al, [si
  144.   mov c3, al 
  145.  
  146.   call handle0 
  147.   call handle1 
  148.   call handle2 
  149.   call handle3 
  150.   jmp lp 
  151.  
  152.   less1: 
  153.   mov c3, 0 
  154.   call handle0 
  155.   call handle1 
  156.   call handle2 
  157.   mov k4, 64 
  158.   mov cl, 1 
  159.   jmp lp 
  160.  
  161.   less2: 
  162.   mov c2, 0 
  163.   mov c3, 0 
  164.   call handle0 
  165.   call handle1 
  166.   mov k3, 64 
  167.   mov k4, 64 
  168.   mov cl, 1 
  169.  
  170.   lp: 
  171.   call pr 
  172.   loop chk 
  173.  
  174.   mov ax, 4c00h 
  175.   int 21h 
  176.  
  177. code ends 
  178. end start 

评论 (0)

    当前页暂时没有评论。


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