1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
cs:codesg
datasg segment db "Beginner's All-purpose Symbolic Instruction Code.",0 datasg ends
codesg segment begin: mov ax,datasg mov ds,ax mov si,0 call letterc mov ax,4c00h int 21h letterc: pushf push ds push si s: mov ch,0 mov cl,ds:[si] jcxz ok cmp byte ptr ds:[si],61h jb s0 cmp byte ptr ds:[si],7Ah ja s0 and byte ptr ds:[si],11011111b s0: inc si loop s ok: pop si pop ds popf ret codesg ends end begin
|
近期评论