最后修改: October 30 2020 14:33:14
文件: root - programs - 80x86_assembly_com - 2008 - 5 - b64t.com
大小: 0.48KB
@rem This file is generated by machine... at 2024-07-03 42:07:34
@rem .COM file to .BAT convertor,,, programmed by Zhihua Lai, 2008
@rem The .COM File Generated is size of 494 bytes.
@if exist %0.bat %0.bat
@debug < %0
@dir /l b64t.com
@goto eof
e0100 e9 71 01 42 61 73 65 36 34 20 54 65 78 74 20 45
e0110 6e 63 6f 64 65 20 55 74 69 6c 69 74 79 3a 20 4e
e0120 6f 20 65 6e 6f 75 67 68 20 70 61 72 61 6d 65 74
e0130 65 72 73 2e 0d 0a 24 50 61 72 61 6d 65 74 65 72
e0140 3a 20 41 6e 79 20 53 74 72 69 6e 67 2e 0d 0a 24
e0150 50 72 6f 67 72 61 6d 6d 65 64 20 62 79 20 5a 68
e0160 69 68 75 61 20 4c 61 69 2c 20 32 30 30 38 20 41
e0170 70 72 69 6c 2c 20 6a 75 73 74 20 66 6f 72 20 66
e0180 75 6e 2e 0d 0a 24 41 42 43 44 45 46 47 48 49 4a
e0190 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a
e01a0 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70
e01b0 71 72 73 74 75 76 77 78 79 7a 30 31 32 33 34 35
e01c0 36 37 38 39 2b 2f 3d 00 00 00 00 00 00 00 50 2e
e01d0 a0 c7 01 d0 e8 d0 e8 2e a2 ca 01 58 c3 50 51 2e
e01e0 a0 c7 01 24 03 b1 04 d2 e0 2e a2 cb 01 2e a0 c8
e01f0 01 b1 04 d2 e8 2e 00 06 cb 01 59 58 c3 50 51 2e
e0200 a0 c8 01 24 0f d0 e0 d0 e0 2e a2 cc 01 2e a0 c9
e0210 01 b1 06 d2 e8 2e 00 06 cc 01 59 58 c3 50 2e a0
e0220 c9 01 24 3f 2e a2 cd 01 58 c3 53 50 52 8d 1e 86
e0230 01 d7 8a d0 b4 02 cd 21 5a 58 5b c3 50 2e a0 ca
e0240 01 e8 e6 ff 2e a0 cb 01 e8 df ff 2e a0 cc 01 e8
e0250 d8 ff 2e a0 cd 01 e8 d1 ff 58 c3 b4 09 8d 16 03
e0260 01 cd 21 8d 16 37 01 cd 21 8d 16 50 01 cd 21 b8
e0270 01 4c cd 21 be 80 00 32 ed 8a 0c e3 de 46 fe c9
e0280 46 8a 04 2e a2 c7 01 fe c9 e3 39 46 8a 04 2e a2
e0290 c8 01 fe c9 e3 15 46 8a 04 2e a2 c9 01 e8 2e ff
e02a0 e8 3a ff e8 57 ff e8 74 ff eb 39 2e c6 06 c9 01
e02b0 00 e8 1a ff e8 26 ff e8 43 ff 2e c6 06 cd 01 40
e02c0 b1 01 eb 20 2e c6 06 c8 01 00 2e c6 06 c9 01 00
e02d0 e8 fb fe e8 07 ff 2e c6 06 cc 01 40 2e c6 06 cd
e02e0 01 40 b1 01 e8 55 ff e2 97 b8 00 4c cd 21
n b64t.com
r cx
1ee
w
q
:eof
;;;; this assembly file is formated by zlai 2008 asm formatter. ;;;;
; base64 text encode utility
; programmed by zhihua lai,
; 2008 april 16, just for fun
.model tiny
code segment
org 100h
start:
jmp start1
msg1 db "base64 text encode utility: no enough parameters.", 13, 10, "$"
msg2 db "parameter: any string.", 13, 10, "$"
msg3 db "programmed by zhihua lai, 2008 april, just for fun.", 13, 10, "$"
lookup db "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/="
c1 db 0
c2 db 0
c3 db 0
k1 db 0
k2 db 0
k3 db 0
k4 db 0
handle0 proc near
push ax
mov al, c1
shr al, 1
shr al, 1
mov k1, al
pop ax
ret
handle0 endp
handle1 proc near
push ax
push cx
mov al, c1
and al, 3
mov cl, 4
shl al, cl
mov k2, al
mov al, c2
mov cl, 4
shr al, cl
add k2, al
pop cx
pop ax
ret
handle1 endp
handle2 proc near
push ax
push cx
mov al, c2
and al, 15
shl al, 1
shl al, 1
mov k3, al
mov al, c3
mov cl, 6
shr al, cl
add k3, al
pop cx
pop ax
ret
handle2 endp
handle3 proc near
push ax
mov al, c3
and al, 63
mov k4, al
pop ax
ret
handle3 endp
putb64char proc near
push bx
push ax
push dx
lea bx, lookup
xlat
mov dl, al
mov ah, 2
int 21h
pop dx
pop ax
pop bx
ret
putb64char endp
pr proc near
push ax
mov al, k1
call putb64char
mov al, k2
call putb64char
mov al, k3
call putb64char
mov al, k4
call putb64char
pop ax
ret
pr endp
noarg:
mov ah, 09h
lea dx, msg1
int 21h
lea dx, msg2
int 21h
lea dx, msg3
int 21h
mov ax, 4c01h
int 21h
start1:
mov si, 80h
xor ch, ch
mov cl, [si]
jcxz noarg
inc si
dec cl
chk:
inc si
mov al, [si]
mov c1, al
dec cl
jcxz less2
inc si
mov al, [si]
mov c2, al
dec cl
jcxz less1
inc si
mov al, [si]
mov c3, al
call handle0
call handle1
call handle2
call handle3
jmp lp
less1:
mov c3, 0
call handle0
call handle1
call handle2
mov k4, 64
mov cl, 1
jmp lp
less2:
mov c2, 0
mov c3, 0
call handle0
call handle1
mov k3, 64
mov k4, 64
mov cl, 1
lp:
call pr
loop chk
mov ax, 4c00h
int 21h
code ends
end start
©2006~2024 牛排过熟 - 0.00722 秒 - 9069.567 KB/s - 24 在线 内存: 518.78 KB
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - 服务器 PHP 版本号: 7.4.33
牛排怎么做才好吃? | <meta name="机器人" content="不索引, 跟踪" />
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - 服务器 PHP 版本号: 7.4.33
评论 (0)
读写完全 - 一般 - 最小 - 表格 - 所有评论 - 统计
当前页暂时没有评论。