看板 ASM 關於我們 聯絡資訊
自己看書想要練習寫, 不過寫出來也只有一種顏色= = 下面是程式碼 TITLE Change Text Color ;將一組文字以四種顏色呈現 INCLUDE Irvine32.inc .data buffer BYTE 50 DUP(?) ;定義字串長度 byteCount DWORD ? ;定義字串長度計算變數 .code mov ecx,4 main PROC L1: call Text loop L1 exit main ENDP Text PROC mov edx,OFFSET buffer mov ecx,(SIZEOF buffer)-1 call ReadString mov byteCount,eax mov eax,white + (blue*16) call SetTextColor call WriteString ret Text ENDP END main 請問一下我該怎樣去改會比較好呢? 麻煩各位了 囧> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.156.75