Shop OBEX P1 Docs P2 Docs Learn Events
Dumb question (LMM/XMMC) — Parallax Forums

Dumb question (LMM/XMMC)

Mark MaraMark Mara Posts: 64
edited 2013-05-14 21:58 in Propeller 1
Hello,

Could someone explain why I get different results running the following 3 line program when complied for XMMC or LMM?
#include <stdio.h>


int main(void)
{
    printf("print line one\n");  
    printf("print line two\n");
    return 0;
}

LMM works as I would expect, however XMMC displays the last 6 character of the second line. The following screen shots show the SimpleIDE and terminal for each test.

XMMC:
LMM.jpg


LMM:
XMMC.jpg


Thanks --markM
1024 x 965 - 83K
1024 x 966 - 85K

Comments

  • Dr_AculaDr_Acula Posts: 5,484
    edited 2013-05-14 21:37
    I think the reason is one of the models takes a bit longer to startup than the other and the startup delay is similar to the startup time for the terminal program. A similar problem crops up with other displays, eg TV and VGA as they take a little while to get started. Adding a small delay at the beginning of a program tends to fix things.
  • Mark MaraMark Mara Posts: 64
    edited 2013-05-14 21:58
    Thanks. That was it.

    --markM
Sign In or Register to comment.