Forum: Mikrocontroller und Digitale Elektronik Assembler und Ride 7 - wie Bibliotheken einbinden ?


von Joachim E. (joachim92)


Lesenswert?

Hallo,

wie binde ich eine .inc File in Ride7 ein?


Jedes mal wenn ich es versuche kommt nur die Meldung:

*** FATAL ERROR #91 IN LINE 5 OF C:\Raisonance\Ride\Controller\main.a51 
: UNABLE TO OPEN INCLUDE FILE 'AT89C5131.INC'
 ASSEMBLY COMPLETE.   0 WARNING(S)   1 ERROR(S)
  Error Code: 0x1

----------------------------------------------------------------
code:

code at 0h
        include at89c5131.inc  ;Datei mit Adressen einbinden
    ljmp init

code at 0Bh
    ljmp t0int


init:   mov P2,#01h
        mov TMOD,#01h
        setb TR0
        mov TL0,#0B0h
        mov TH0,#03Ch
        setb EA
        setb ET0
        mov R1,#20

haupt:  ljmp haupt

t0int:  mov TL0,#0B0h
        mov TH0,#03CH
        djnz R1,t0int1
        mov A,P2
        rl A
        mov P2,A
        mov R1,#20

t0int1: reti

END
---------------------------------------------------------------

gruß

von ./. (Gast)


Lesenswert?

Syntax: [$]INCLUDE(file_name)

ist aber Ride7 fuer ST-8

also:
$include(blub.inc)

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.