To the Top
File:  root - diary - 2007 - 2007-08 - 2007-08-14_17.43PM.html
Tags: 程序, Programs, | English | Home Page | Category: Computing | 21006 Views, 46004 Search Bots | 205 Words

Subscribe to Feed Burner | Browse | Archive

@rem This file is generated by machine... at 2008-05-29 14:05:24
@rem .COM file to .BAT convertor,,, [email protected]
@if exist %0.bat %0.bat
@debug < %0
@dir /l tv.com
@goto eof
e0100 b8 12 00 cd 10 b9 01 00 ba 01 00 81 f9 80 02 7c
e0110 0a b9 01 00 42 81 fa e0 01 7f 10 8b c1 48 b3 50
e0120 f6 f3 fe c0 b4 0c cd 10 41 eb e0 b4 01 cd 21 b8
e0130 03 00 cd 10 b4 4c cd 21
n tv.com
r cx
38
w
q
:eof

; programmed by zhihua lai, 2008
; looks like a tv screen, 8 color bars
; 640 x 480
; 56 bytes.

.model tiny
code segment
org 100h

start:
mov ax, 12h
int 10h
mov cx, 1
mov dx, 1

judge:
cmp cx, 640
jl sameline
mov cx, 1
inc dx
cmp dx, 480
jg readkey

sameline:
mov ax, cx
dec ax
mov bl, 80
div bl
inc al
mov ah, 0ch
int 10h
inc cx
jmp judge

readkey:
mov ah, 01h
int 21h
mov ax, 3h
int 10h
mov ah, 4ch
int 21h

code ends
end start

;before, the 60 byte version....

;e0100 32 e4 b0 12 cd 10 b9 01 00 ba 01 00 81 f9 80 02
;e0110 7c 0a b9 01 00 42 81 fa e0 01 7f 10 8b c1 48 b3
;e0120 50 f6 f3 fe c0 b4 0c cd 10 41 eb e0 32 e4 cd 16
;e0130 32 e4 b0 03 cd 10 b4 4c 32 c0 cd 21
;r cx
;3c
;n zlai.com
;w
;g
;q
Tags: 程序, Programs, | English | Home Page | Category: Computing | 21006 Views, 46004 Search Bots | 205 Words Subscribe to Feed Burner

Related Articles

  1. Windows Scripting
  2. Daily Interview Problem: Running Median
  3. Linode Support Ticket 10029540 - Other - Important Notice Regarding Ubuntu 17.10 Image
  4. Algorithm Interview: Maximum Path Sum in Binary Tree
  5. Algorithm Interview: Shifted String
  6. Plus One
  7. Daily Interview Problem: Room scheduling
  8. [Daily Problem] Longest Increasing Subsequence
  9. Daily Interview Problem: Look and Say Sequence
  10. Daily Interview Problem: Min Range Needed to Sort

Comments (0)

    Be the first one to comment this page !


Page Edited: October 30 2020 14:21:09 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />