format PE GUI 4.0
entry start
macro testMacro arg1, keyTable
{
count = (keyTable#.end - keyTable#.begin)
repeat count
load key byte from keyTable#.begin+%-1
end repeat
}
section '.data' data readable writeable
keyTableTest.begin:
db 0x12, 0x13, 0x14, 0x15, 0x16, 0x17
keyTableTest.end:
section '.code' code readable executable
start:
push ebp
mov ebp, esp
xor eax, eax
mov esp, ebp
pop ebp
ret
testMacro testArg, keyTableTest
I always get the error and I have no clue what im doing wrong. I would really appreciate it if somebody could help me with that.
load key byte from keyTable#.begin+%-1
error: value out of range.