Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/main:org0x0100jmp startstack:db256dup(0)tos:dw0start:mov ax, csmov ds, axmov ss, axmov sp, tosmov ax, endmov bx, mainsub ax, bxmov bx,2div bxcmp dx,0je next_stepinc axnext_step:mov bx, axmov si,0mov di,0.0:cmp di,0je .1mov ax,0x0000push axcall print_charpop ax.1:mov dx, cs:[si]mov ch,0x04mov cl,0x04.2:mov ax,0rol dx, clmov al, dland al,0x0fadd al,0x30cmp al,0x3ajl .3add al,0x07.3:push axcall print_charpop axdec chcmp ch,0jne .2inc diadd si,2dec bxcmp bx,0jne .0hltprint_char:push bppush axpush bxmov b
...
继续阅读
(20)