encode.asm

来自「一本《硬盘保护技术手册》附带的源码」· 汇编 代码 · 共 32 行

ASM
32
字号
;<<硬盘保护技术手册>> page 117
;编码程序 encode.asm
;mbr-program partition table encode
       .MODEL tiny
       .CODE
       org   100h
begin:
      push   cs
      pop    ds
      push   cs
      pop    es
      mov    ax,0201h
      mov    bx,offset Buffer
      mov    cx,0001h
      mov    dx,0080h
      int    13h
      mov    si,offset Buffer+1BEh
      mov    cx,20h
mask1:
      xor  word ptr[si],0AAAAh
      inc  si
      inc  si
      loop mask1
      mov  ax,0301h
      mov  bx,offset Buffer
      mov  cx,0001h
      mov  dx,0080h
      int  13h
      mov  ah,4ch
      int 21h
Buffer db   512 dup(0)
       END begin

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?