C166 Assembler

Gast #1949528
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

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren