Trending News
Promoted
SIC檔轉英文換大小寫(急)
請問 有一個SIC檔
要把裡面英文小寫轉換成大寫怎麼轉
mt1 start 5000
first ldx ten
sloop ldch letter
stch table,x
tix count
jlt sloop
rsub
count word 256
letter byte c'c'
table resb 256
ten word 10
end first
附帶一提是用DEV C轉換
1 Answer
Rating
- New HorizonLv 69 years agoFavorite Answer
教你一個最快而且很好的辦法
用視窗化程式,介面輸入就可以了阿
當然你的做法可以順練對檔案中字串的處理能力沒錯拉
假設字串裡面是
str[] = "COPYSTART1000";
然後去搜尋指令部分這個子字串(SIC有59+6種虛指令)的頭尾位置
假設頭的位置是R 尾的位置是L
然後在0~R的位置的子字串複製到你要的 A 裡面
然後在R~L的位置的子字串複製到 B 裡面
然後在L~原字串最末端('\0')的子字串複製到C裡面 就這樣
Still have questions? Get your answers by asking now.