页面顶部 Top


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

  1. @rem This file is generated by machine... at 2024-04-27 34:04:37
  2. @rem .COM file to .BAT convertor,,, programmed by Zhihua Lai, 2008
  3. @rem The .COM File Generated is size of 56 bytes.
  4. @if exist %0.bat %0.bat
  5. @debug < %0
  6. @dir /l tv.com
  7. @goto eof
  8. e0100 b8 12 00 cd 10 b9 01 00 ba 01 00 81 f9 80 02 7c
  9. e0110 0a b9 01 00 42 81 fa e0 01 7f 10 8b c1 48 b3 50
  10. e0120 f6 f3 fe c0 b4 0c cd 10 41 eb e0 b4 01 cd 21 b8
  11. e0130 03 00 cd 10 b4 4c cd 21
  12. n tv.com
  13. r cx
  14. 38
  15. w
  16. q
  17. :eof

  1. ;;;; this assembly file is formated by zlai 2008 asm formatter. ;;;;
  2. ; programmed by zhihua lai, 2008
  3. ; looks like a tv screen, 8 color bars
  4. ; 640 x 480
  5. ; 56 bytes.
  6.  
  7. .model tiny 
  8. code segment 
  9.   org 100h 
  10.  
  11.   start: 
  12.   mov ax, 12h 
  13.   int 10h 
  14.   mov cx, 1 
  15.   mov dx, 1 
  16.  
  17.   judge: 
  18.   cmp cx, 640 
  19.   jl sameline 
  20.   mov cx, 1 
  21.   inc dx 
  22.   cmp dx, 480 
  23.   jg readkey 
  24.  
  25.   sameline: 
  26.   mov axcx 
  27.   dec ax 
  28.   mov bl, 80 
  29.   div bl 
  30.   inc al 
  31.   mov ah, 0ch 
  32.   int 10h 
  33.   inc cx 
  34.   jmp judge 
  35.  
  36.   readkey: 
  37.   mov ah, 01h 
  38.   int 21h 
  39.   mov ax, 3h 
  40.   int 10h 
  41.   mov ah, 4ch 
  42.   int 21h 
  43.  
  44. code ends 
  45. end start 
  46.  
  47. ;before, the 60 byte version....
  48.  
  49. ;e0100 32 e4 b0 12 cd 10 b9 01 00 ba 01 00 81 f9 80 02
  50. ;e0110 7c 0a b9 01 00 42 81 fa e0 01 7f 10 8b c1 48 b3
  51. ;e0120 50 f6 f3 fe c0 b4 0c cd 10 41 eb e0 32 e4 cd 16
  52. ;e0130 32 e4 b0 03 cd 10 b4 4c 32 c0 cd 21
  53. ;r cx
  54. ;3c
  55. ;n zlai.com
  56. ;w
  57. ;g
  58. ;q

评论 (0)

    当前页暂时没有评论。


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