![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
|
|
#1
|
|||
|
|||
|
tengo un problema ahora ! mikropascal me dice 1:1 E-0 Linker error: 13: bad bit number el error se produce si saco
Código:
while true do Begin *** End; Código:
while true do
Begin
while TestBit(PORTA,3) = 1 Do // pregunto si la pata 2 esta en nivel alto
// si lo esta entonces
Begin *** End;
|
|
#2
|
||||
|
||||
|
¿ Podrías postear el código fuente completo ?.
Saludos !
__________________
Lazarus Codetyphon : Desarrollo de aplicaciones Object Pascal, libre y multiplataforma. |
|
#3
|
|||
|
|||
|
perdon lo borre pero intento generar de nuevo el error con mikropascal pro 2009 y no lo hace !! voy a volver a instalar mikropascal 8.0.0.1 para ver si de nuevo me genera el error !
era algo asi el codigo Código:
program probar1;
{ Declarations section }
begin
SetBit(TRISA, 3);
SetBit(TRISA, 2);
begin
while true do
begin
while TestBit(PORTB,3) = 1 Do
begin
PORTA := PORTA Or %00010010;
end;
end;
end;
begin
while true do
begin
while TestBit(PORTB,2) = 1 do
begin
PORTA := PORTA Or %11101101;
end;
end;
end;
end.
gracias ! Última edición por gaston260 fecha: 06-01-2010 a las 06:40:14. |
|
#4
|
|||
|
|||
|
Bue resulta que ni el mikropascal 8.0.0.1 me genera errores ni el pro tampoco !
el codigo es este program probar1; { Declarations section } begin SetBit(TRISA, 3); SetBit(TRISA, 2); {ClearBit(TRISB, 7); ClearBit(TRISB, 8); ClearBit(TRISB, 9); ClearBit(TRISB, 10); ClearBit(TRISB, 11); ClearBit(TRISB, 12); //ClearBit(TRISB, 13); } TRISB := %00001111; begin while true do begin while TestBit(PORTA,3) = 0 Do begin PORTB := PORTB Or %10010010; end; //end; //end; //begin //while true do //begin while TestBit(PORTA,2) = 0 do begin PORTB := PORTB Or %11101101; end; end; end; end. Última edición por gaston260 fecha: 06-01-2010 a las 07:39:39. Razón: porque escrbi mal el codigo |
|
#5
|
||||
|
||||
|
Entonces...¿ todo funciona ?
![]() Saludos !
__________________
Lazarus Codetyphon : Desarrollo de aplicaciones Object Pascal, libre y multiplataforma. |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| [Z80 Pascal] Proyecto de compilador | Ñuño Martínez | ASM y Microcontroladores | 6 | 11-05-2010 14:37:47 |
| Mikro Pascal 8051 | JoseFco | ASM y Microcontroladores | 9 | 19-10-2008 00:43:50 |
| primer programa y primer empleo | josi | La Taberna | 36 | 17-07-2008 22:30:41 |
| Comparativa entre Free Pascal 2.2.0 y Turbo Pascal 7.0 | esocrates | Varios | 2 | 14-07-2008 14:56:24 |
| manual de excepciones de object pascal para free pascal??? | Garion | OOP | 3 | 27-05-2005 00:42:29 |
|