RunProgram: can't get all the list of errors
Posted: Sat Dec 16, 2023 7:09 pm
Hello:
I'm using the following snippet but I can't get all the errors I normally got with a command line:
The program is "fasm.exe", I made intentional errors in my asm file (no label1), in a command window I get:
what's wrong?
Any help is appreciated
I'm using the following snippet but I can't get all the errors I normally got with a command line:
Code: Select all
Define fname.s, tmp.s
fname=OpenFileRequester("Choose File:","","Asm (*.asm)|*.asm",0)
prog=RunProgram("E:\install\dvd1\dev_soft\assembly\FASM\fasm",fname,"",#PB_Program_Hide | #PB_Program_Open | #PB_Program_Read | #PB_Program_Error)
While ProgramRunning(prog)
If AvailableProgramOutput(prog)
tmp="* "+ReadProgramString(prog)
Debug tmp
tmp = ReadProgramError(prog)
If tmp
tmp="/ "+tmp
Debug tmp
EndIf
EndIf
Wend
If ProgramExitCode(prog) <> 0
tmp = "+ "+ReadProgramError(prog)
Debug tmp
EndIf
In PB, running the previous snippet, I got:flat assembler version 1.73.31 (1048576 kilobytes memory)
test1.asm [62]:
jmp label1
processed: jmp label1
error: undefined symbol 'label1'.
just the two first lines, the last lines don't appear.* flat assembler version 1.73.31 (1048576 kilobytes memory)
+ E:\my_data\prog\asm8086\emu8086\test1\test1.asm [62]:
what's wrong?
Any help is appreciated