看板 ASM 關於我們 聯絡資訊
.data arrayP DWORD 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 . . . .code . . . .IF (edx EQ 0) and (eax GT [arrayP+esi*TYPE arrayP]) mov pri,0 ;prime = false .ENDIF . . . ----------------------------------- .\main.asm(40) : error A2154:syntax error in control-flow directive 請問這裡哪邊有問題?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.229.178
darkgerm:可以寫這麼複雜的嗎?分開寫試試 03/29 23:27
TaiwanXDman:換行時 第二行頭要補DWORD 03/30 18:57
TaiwanXDman:第三行也是 03/30 18:57
TaiwanXDman:還是是錯在別地方? 03/30 18:58
TaiwanXDman:113耶 03/30 19:20
attomahawk:樓上也是113呀。 03/31 00:17
attomahawk:斷行宣告變數 有接","的話,可以接下一行的數值。 03/31 00:25
attomahawk:我的環境是 MASM + VS2010。 03/31 00:26
TaiwanXDman:噢我沒看有, XDD 03/31 02:33
shangclock:後來發現是reg就直接寫==或>就好了 感謝 03/31 23:52
attomahawk:^^ 04/01 18:46