Shop OBEX P1 Docs P2 Docs Learn Events
New Commands in compiled basic. — Parallax Forums

New Commands in compiled basic.

lawlopezlawlopez Posts: 6
edited 2005-10-13 14:47 in General Discussion
Is it possible to add new commands in compiled basic
which end up being assembly macro involcatiosn which
generate tailored assembly language ?

I really like the speed of the whole thing.

Being able to generate 50 MHz square waves from basic
is way cool.

Most of the interesting things I want to do I'd be doing
on interrupt level and that works very well also.

This is a great product.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-13 14:47
    Sure, just define a subroutine:

    MYSUB··· SUB

    ... and then put assembly code in it as you desire with the ASM..ENDASM block:

    MYSUB:
    · ASM
    ··· NOP
    · ENDASM
    · RETURN

    You can even define you subroutine (new "keyword") to accept parameters and return a value if you need.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.