最后修改: October 30 2020 14:33:14
文件: root - programs - 80x86_assembly_com - 2008 - 5 - lower.com
大小: 0.2KB
@rem This file is generated by machine... at 2024-07-04 27:07:52
@rem .COM file to .BAT convertor,,, programmed by Zhihua Lai, 2008
@rem The .COM File Generated is size of 204 bytes.
@if exist %0.bat %0.bat
@debug < %0
@dir /l lower.com
@goto eof
e0100 e9 a3 00 4d 61 6b 65 20 53 74 72 69 6e 67 20 69
e0110 6e 20 4c 6f 77 65 72 20 43 61 73 65 20 55 74 69
e0120 6c 69 74 79 3a 20 4e 6f 20 65 6e 6f 75 67 68 20
e0130 70 61 72 61 6d 65 74 65 72 73 2e 0d 0a 24 50 61
e0140 72 61 6d 65 74 65 72 3a 20 41 6e 79 20 53 74 72
e0150 69 6e 67 2e 0d 0a 24 50 72 6f 67 72 61 6d 6d 65
e0160 64 20 62 79 20 5a 68 69 68 75 61 20 4c 61 69 2c
e0170 20 32 30 30 38 20 41 70 72 69 6c 2c 20 6a 75 73
e0180 74 20 66 6f 72 20 66 75 6e 2e 0d 0a 24 b4 09 8d
e0190 16 03 01 cd 21 8d 16 3e 01 cd 21 8d 16 57 01 cd
e01a0 21 b8 01 4c cd 21 be 80 00 32 ed 8a 0c e3 de 46
e01b0 fe c9 46 8a 04 3c 41 72 06 3c 5a 77 02 04 20 8a
e01c0 d0 b4 02 cd 21 e2 eb b8 00 4c cd 21
n lower.com
r cx
cc
w
q
:eof
;;;; this assembly file is formated by zlai 2008 asm formatter. ;;;;
; make string in lowercase
; programmed by zhihua lai,
; 2008 april 16, just for fun
.model tiny
code segment
org 100h
start:
jmp start1
msg1 db "make string in lower case 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, "$"
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]
cmp al, 'a'
jb nochg
cmp al, 'z'
ja nochg
add al, 32
nochg:
mov dl, al
mov ah, 2
int 21h
loop chk
ok:
mov ax, 4c00h
int 21h
code ends
end start
©2006~2024 牛排过熟 - 0.00731 秒 - 7494.198 KB/s - 39 在线 内存: 495.02 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)
读写完全 - 一般 - 最小 - 表格 - 所有评论 - 统计
当前页暂时没有评论。