Assembler problem....
Posted: Thu Jul 03, 2008 12:05 pm
This is from a long time jaPBe + PureBasic user... but an absolute new boy with assembler on PC.
(But I wrote assemblers for other processors and know what they are about)
Please excuse posting here as well as in the jaPBe forum... I'm desparate
Simply put, the code snippet works when complied on its own BUT... when I copy and paste it into a larger program using the same jaPBe editor it:
(a) Does not highlight the op-codes
(b) Will not compile (Line 513 - Syntax Error!)
(c) Behaves the same when I copy the whole thing into PB's own editor.
Yes... it is declared in the large program.
Yes... ASM support is enabled.
I must be doing something really stupid; please can anyone suggest what?
Best regards
RichardL
(But I wrote assemblers for other processors and know what they are about)
Please excuse posting here as well as in the jaPBe forum... I'm desparate

Simply put, the code snippet works when complied on its own BUT... when I copy and paste it into a larger program using the same jaPBe editor it:
(a) Does not highlight the op-codes
(b) Will not compile (Line 513 - Syntax Error!)
(c) Behaves the same when I copy the whole thing into PB's own editor.
Yes... it is declared in the large program.
Yes... ASM support is enabled.
I must be doing something really stupid; please can anyone suggest what?
Best regards
RichardL
Code: Select all
Declare ToggleWatchDog(TimeOut)
T.l = ToggleWatchDog(6)
Debug T.l
Procedure ToggleWatchDog(TimeOut)
INC TimeOut
MOV Eax, TimeOut
ProcedureReturn
EndProcedure