Shop OBEX P1 Docs P2 Docs Learn Events
[invalid][puzzle] Unsolved mystery — Parallax Forums

[invalid][puzzle] Unsolved mystery

kuronekokuroneko Posts: 3,623
edited 2011-08-01 16:19 in Propeller 1
Just found [thread=91799]this old thread[/thread] which doesn't appear to have a solution. So what is the solution and why is the OP seeing the behaviour described in [post=630707]post #8[/post]?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-08-01 08:11
    It's the old bugaboo: jmp target without the # in line 25:
    Main_Loop     test      CONV, ina     wz         'DVALID
           if_nz  jmp       Main_Loop               ' if Test zero, keep looping
    
    Adding the # fixes the problem.

    -Phil
  • idbruceidbruce Posts: 6,197
    edited 2011-08-01 09:01
    It is amazing the havoc that one missing character can create in programming. Large PERL scripts and missing semi-colons had a habit of driving me insane.

    Bruce
  • jazzedjazzed Posts: 11,803
    edited 2011-08-01 09:32
    idbruce wrote: »
    It is amazing the havoc that one missing character can create in programming. Large PERL scripts and missing semi-colons had a habit of driving me insane.

    Bruce

    Beginner books with bad syntax in the programming examples made me crazy :)
    Dang you Osborne and McGraw-Hill !

    I got over this # problem mostly by writing my own PASM simulator some years ago.
    Writing a simulator forces one to learn the instructions otherwise it will never work.

    Once you get used to semicolons, you can't go back :)
  • idbruceidbruce Posts: 6,197
    edited 2011-08-01 09:44
    @jazzed
    I got over this # problem mostly by writing my own PASM simulator some years ago.
    Writing a simulator forces one to learn the instructions otherwise it will never work.

    I can feel your pain my friend :)
    Once you get used to semicolons, you can't go back :smile:

    I miss PERL programming :(

    And you don't want to forget the # in the next line otherwise it will never work :)

    #!/usr/bin/env perl

    Bruce
  • jazzedjazzed Posts: 11,803
    edited 2011-08-01 09:57
    idbruce wrote: »
    And you don't want to forget the # in the next line otherwise it will never work :)

    #!/usr/bin/env perl

    Bruce

    HAHAHA :)

    I always thought unix scripts should understand this:

    #!/bin/justReadMyMind
  • idbruceidbruce Posts: 6,197
    edited 2011-08-01 10:11
    @jazzed

    ESP - Extra Sensory Programming. I like the concept :)
  • kuronekokuroneko Posts: 3,623
    edited 2011-08-01 16:06
    @Phil: OK, that takes care of the what part (the easy one). Anyone care to explain the why?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-08-01 16:19
    I fixed the problem. What else matters? :)

    When you jump by mistake to the address held by the contents of your presumed destination (in this case @ina = $1F2) and then expect the instruction at that location to make sense -- or even remain constant -- you're just asking for trouble. 'Enough of an explanation?

    -Phil
Sign In or Register to comment.