Shop OBEX P1 Docs P2 Docs Learn Events
P2 Propeller Tool & pasm jmp — Parallax Forums

P2 Propeller Tool & pasm jmp

Can't the Propeller Tool in PASM make jumps over cells deffined with long?

DAT     org                       '                                                                    '
        asmclk                    '                                                                    '
.loop                             '                                                                    '
        call    #.dac1            '                                                                    '
        call    #.adc2            '                                                                    '
        jmp     #.loop            '                                                                    '
'------------------------------------------------------------------------------------------------------'
' DAC                                                                                                  '
'------------------------------------------------------------------------------------------------------'
.dac1                             '                                                                    '
        ret                       '                                                                    '
'------------------------------------------------------------------------------------------------------'
' Variabeln                                                                                            '
'------------------------------------------------------------------------------------------------------'
outw     long  0                   '                                                                    '
'------------------------------------------------------------------------------------------------------'
' ADC                                                                                                  '
'------------------------------------------------------------------------------------------------------'
.adc2                             '                                                                    '
        ret                       '                                                                    '
'------------------------------------------------------------------------------------------------------'
' Variabeln                                                                                            '
'------------------------------------------------------------------------------------------------------'
inw    long  $8000               '                                                                    '

Comments

  • msrobotsmsrobots Posts: 3,704
    edited 2021-03-12 11:50

    you use local labels with "."

    but have not local labels in between.

    So remove the "." from labels and calls.

    Gruss,

    Mike

  • evanhevanh Posts: 15,187

    Or put dots at start of all the labels.

  • I have now killed the points.
    I guess I got carried away with the examples.
    Thanks

Sign In or Register to comment.