页面顶部 Top


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

  1. @rem This file is generated by machine... at 2024-05-09 15:05:52
  2. @rem .COM file to .BAT convertor,,, programmed by Zhihua Lai, 2008
  3. @rem The .COM File Generated is size of 262 bytes.
  4. @if exist %0.bat %0.bat
  5. @debug < %0
  6. @dir /l schr.com
  7. @goto eof
  8. e0100 e9 a1 00 00 00 00 00 0a 53 75 70 65 72 20 41 53
  9. e0110 43 49 49 20 4c 6f 6f 6b 75 70 20 55 74 69 6c 69
  10. e0120 74 79 3a 20 4e 6f 20 65 6e 6f 75 67 68 20 70 61
  11. e0130 72 61 6d 65 74 65 72 73 2e 0d 0a 24 50 61 72 61
  12. e0140 6d 65 74 65 72 3a 20 4e 75 6d 62 65 72 73 20 2e
  13. e0150 2e 2e 0d 0a 24 50 72 6f 67 72 61 6d 6d 65 64 20
  14. e0160 62 79 20 5a 68 69 68 75 61 20 4c 61 69 2c 20 32
  15. e0170 30 30 38 20 41 70 72 69 6c 2c 20 6a 75 73 74 20
  16. e0180 66 6f 72 20 66 75 6e 2e 0d 0a 24 b4 09 8d 16 08
  17. e0190 01 cd 21 8d 16 3c 01 cd 21 8d 16 55 01 cd 21 b8
  18. e01a0 01 4c cd 21 be 80 00 32 ed 8a 0c e3 de 46 fe c9
  19. e01b0 46 8a 04 3c 30 72 20 3c 39 77 1c 2c 30 32 e4 2e
  20. e01c0 a3 05 01 2e a1 03 01 2e f6 26 07 01 2e 03 06 05
  21. e01d0 01 2e a3 03 01 eb 1f 2e 83 3e 03 01 00 74 09 b4
  22. e01e0 02 2e 8a 16 03 01 cd 21 2e c7 06 03 01 00 00 2e
  23. e01f0 c7 06 05 01 00 00 e2 b8 b4 02 2e 8a 16 03 01 cd
  24. e0200 21 b8 00 4c cd 21
  25. n schr.com
  26. r cx
  27. 106
  28. w
  29. q
  30. :eof

  1. ;;;; this assembly file is formated by zlai 2008 asm formatter. ;;;;
  2. ; super ascii look up
  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.   num dw 0 
  14.   new dw 0 
  15.   ten db 0ah 
  16.   msg1 db "super ascii lookup utility: no enough parameters.", 13, 10, "$" 
  17.   msg2 db "parameter: numbers ...", 13, 10, "$" 
  18.   msg3 db "programmed by zhihua lai, 2008 april, just for fun.", 13, 10, "$" 
  19.  
  20.   noarg: 
  21.   mov ah, 09h 
  22.   lea dx, msg1 
  23.   int 21h 
  24.   lea dx, msg2 
  25.   int 21h 
  26.   lea dx, msg3 
  27.   int 21h 
  28.   mov ax, 4c01h 
  29.   int 21h 
  30.  
  31.   start1: 
  32.   mov si, 80h 
  33.   xor chch 
  34.   mov cl, [si
  35.   jcxz noarg 
  36.   inc si 
  37.   dec cl 
  38.  
  39.   chk: 
  40.   inc si 
  41.   mov al, [si
  42.   cmp al, '0' 
  43.   jb s 
  44.   cmp al, '9' 
  45.   ja s 
  46.   sub al, '0' 
  47.   xor ahah 
  48.   mov new, ax 
  49.   mov ax, num 
  50.   mul ten 
  51.   add ax, new 
  52.   mov num, ax 
  53.   jmp ok 
  54.  
  55.   s: 
  56.   cmp num, 0 
  57.   jz s2 
  58.   mov ah, 2 
  59.   mov dlbyte ptr [num] 
  60.   int 21h 
  61.   s2: 
  62.   mov num, 0 
  63.   mov new, 0 
  64.  
  65.   ok: 
  66.   loop chk 
  67.   mov ah, 2 
  68.   mov dlbyte ptr [num] 
  69.   int 21h 
  70.   mov ax, 4c00h 
  71.   int 21h 
  72.  
  73. code ends 
  74. end start 

评论 (0)

    当前页暂时没有评论。


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