想要最小的注册机的进来!!!!编译出来只98字节!!!!!够不够变态???? (894字)
;==============masm16kg.asm===========
;编译方法(当然得用masm 5.0或其他16位编译器啦):
;masm masm16kg;
;link masm16kg;
;debug masm16kg.exe --> rcx将16F改为6F --> n masm16kg.com --> w -->
q
;运行你的作品吧。
code segment
assume cs:code,ds:code,ss:code
org 100h
start:
mov ah,9
mov dx,offset Msg
int 21h
mov ah,0ah
mov dx,offset szName
int 21h
xor cx,cx
lea si,Buf
mov ax,107
mov bl,ReadLen
mul bl
mov bp,ax
mov ah,9
mov dx,offset Msg2
int 21h
Next:
xor ax,ax
lodsb
add ax,bp
inc cx
xor dx,dx
div cx
push cx
xor cx,cx
Next1:
test ax,ax
jz Disp
xor dx,dx
mov di,10
div di
add dl,'0'
push dx
inc cx
jmp Next1
Disp:
pop dx
mov ah,2
int 21h
loop Disp
pop cx
cmp cl,bl
jl Next
int 20h
Msg db "Name:$"
Msg2 db 0ah,"Code:",24h
szName Label byte
NameLen db 82
ReadLen db 80
Buf Label byte
code ends
end start
