📄 inv602-r.asm
字号:
;
; InVircible v6.02 Registrator, (c)1995 鹖rogen
;
; This little utility simply installs InVircible's registration key onto
; your hard drive. It is located on the last sector of the first cylinder
; and is designated by the word 48A5h residing at the end of the sector.
; After installing this, all current and future copies of InVircible installed
; on that hard drive will be registered, or licenced rather.
;
segment cseg
assume cs: cseg, ds: cseg, es: cseg, ss: cseg
cr equ 0ah
lf equ 0dh
org 100h
start:
lea dx,intro ; display intro / prompt
call disp
get_y_n:
mov ah,8 ; make sure the user wants to
int 21h
cmp al,'Y'
jz yes
cmp al,'y'
jz yes
cmp al,'N'
jz no
cmp al,'n'
jz no
jmp get_y_n
yes:
call disp_al
mov dh,1
mov cx,1
call read_sec ; read boot sector
mov dh,0
mov cx,word ptr sec_buf[18h] ; get cylinder per sector
call read_sec ; read last sector of cyl 0
mov word ptr sec_buf[1FEh],0A548h ; throw word
mov ax,0301h ; write new sector to disk
int 13h
lea dx,done_msg
jmp exit
no:
call disp_al
lea dx,abort_msg
exit:
call disp
ret
read_sec:
mov ax,0201h
lea bx,sec_buf
mov dl,80h
int 13h
ret
disp:
mov ah,9
int 21h
ret
disp_al:
mov dl,al
mov ah,2
int 21h
ret
intro:
db cr,lf,' 谀哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪目'
db cr,lf,'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -