当前位置: 代码迷 >> 综合 >> 2011 1-9
  详细解决方案

2011 1-9

热度:46   发布时间:2024-01-15 12:32:31.0

效率:FloppyWriter+Bochs

 

技术:IDA 莫用OllyICE

 

mov     ax, 7CD6h
mov     si, ax
mov     cx, 6

loc_51:
mov     ah, 2
mov     bh, 0
mov     dh, 6
mov     dl, 11h
int     10h             ; - VIDEO - SET CURSOR POSITION
                            ; DH,DL = row, column (0,0 = upper left)
                            ; BH = page number
mov     dx, [si]
mov     ah, 9
shr     dl, 1
mov     al, dl
mov     bl, 7
mov     bh, 0
int     10h             ; - VIDEO - WRITE ATTRIBUTES/CHARACTERS AT CURSOR POSITION
                            ; AL = character, BH = display page
                            ; BL = attributes of character (alpha modes) or color (graphics modes)
                            ; CX = number of times to write character
inc     si
loop    loc_51

 

这里,操作系统第一句要求org 07c00h,所以注意看D6h,字母i.之后si索引加1,为字母s,类推,直到cx=0(注意LOOP用法)。

 

  相关解决方案