Reputation: 1
I had problem with line 15 test.asm(15) : error A2008: syntax error : , the code
include \masm32\MasmBasic\MasmBasic.inc
.data
key db "AMU", 0
keyLength db 3,0
Init
Let esi = Input$("Enter the filename: ", "test.txt")
Let edi = FileRead$(esi)
Let eax = LastFileSize
Let ebx = 0
For_ ebx = 0 To eax - 1
xor [edi + ebx], ByteAt(key, ebx % keyLength)
Next
Let esi = Left$(esi, Rinstr(esi, ".")) + "xyz"
FileWrite esi, edi, LastFileSize
EndOfCode
I'm noob with MasmBasic lib I don't know if there is ByteAt or how to use it
I use
ml.exe /c /coff test.asm
and got
Microsoft (R) Macro Assembler Version 6.15.8803 Copyright (C) Microsoft Corp 1981-2000. All rights reserved.
Assembling: test.asm *** MasmBasic version 28.04.2024 ***
Upvotes: 0
Views: 58