Forum: Mikrocontroller und Digitale Elektronik C166 Assembler


von Gerald (Gast)


Lesenswert?

Warum bekomme ich bei folgendes Assembler Code Mnemonic expected? Wie 
kann man in Assembler Konstanten definieren und Initialisieren und 
später verwenden?

PUBLIC          ?C_USTop
PUBLIC          ?C_USBot
PUBLIC          ?C_SYSTop
PUBLIC          ?C_SYSBot

;?C_USTop      EQU     0x00C7FF
;?C_USBot      EQU     0x00C000
;?C_SYSTop      EQU     0x00F709
;?C_SYSBot      EQU     0x00F6BA

        MOV    #?C_USTop,#0FD00H

; Initialize the System Stack with a signature 167H
        MOV   R1,#SOF ?C_SYSBot ; R1 = bottom of system stack
        MOV   R2,#167H ; Signature value
_SSTKsig:
        MOV   [R1],R2
        CMPI2   R1,#SOF (?C_SYSTop-2) ; if (not top)
        JMP    CC_NE,_SSTKsig ; then continue

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.