Dear support
I have written een console program for control the 8243 expander ports. When I compile my program it doesn't give me compile errors.
There is no example how I can right use the functions HI() en LO()
Error report:
=========
PowerBASIC Console Compiler
PB/CC Version 5.00
Copyright (c) 1998-2008 PowerBasic Inc.
Venice, Florida USA
All Rights Reserved
Error 477 in E:\PROGRA~1\PBCC50\Samples\PCPOOR~1\WinXP\PARALL~1\8243_P~2\2PortsExpander32Bits.bas(128:034): Syntax error
Line 128: Instellen(0, LO(LONG,n)) MOD 16) 'P0: bits 0...3
==============================
Compile failed at 9:25:17 on 26/09/2008
The Whole code in attachtment file for look the full code that you can analyse what I have wrong
Kind regards
Stephane
[/CODE]
Use the Evaluation version of the NtPort.dll library
Attachment : My halfworked application runs under console 32-bit
I have written een console program for control the 8243 expander ports. When I compile my program it doesn't give me compile errors.
There is no example how I can right use the functions HI() en LO()
Error report:
=========
PowerBASIC Console Compiler
PB/CC Version 5.00
Copyright (c) 1998-2008 PowerBasic Inc.
Venice, Florida USA
All Rights Reserved
Error 477 in E:\PROGRA~1\PBCC50\Samples\PCPOOR~1\WinXP\PARALL~1\8243_P~2\2PortsExpander32Bits.bas(128:034): Syntax error
Line 128: Instellen(0, LO(LONG,n)) MOD 16) 'P0: bits 0...3
==============================
Compile failed at 9:25:17 on 26/09/2008
Code:
'Problem 1 ======= Instellen(0, LO(LONG,n)) MOD 16) 'P0: bits 0...3 'Problem 2 ======= writeLn(n, ' ' , value); into PBCC code DIM value AS BYTE value = Inlezen(4) + 16 * Inlezen(5) + 256 * Inlezen(6) + 4096 * Inlezen(7) STDOUT " " & HEX$(n) & HEX$(value) & $CR & $LF
Kind regards
Stephane
[/CODE]
Use the Evaluation version of the NtPort.dll library
Attachment : My halfworked application runs under console 32-bit
Comment