include io32.inc
.data
.code
start:
call readc ;讀字符
cmp al,'A'
jb done ;小於(below)A結束
cmp al,'Z'
ja done ;大於(above)Z結束
or al,20H ;大寫轉小寫
call dispcrlf ;顯示
call dispc
done: exit 0
end start
- 樣例1
– 輸入:G
– 輸出:g - 樣例2
– 輸入:7
– 輸出:(無)