Post Reply 
Coments in a Prime Program
01-06-2014, 07:11 AM
Post: #1
Coments in a Prime Program
Sorry if this has been discussed, but I am having a problem. I am having a problem with EVERY program I download or write, when I come to a comment line my listing stops executing. As an example, I'd like to quote just a portion from Egan Ford's Breakout Program. I hope you don't mind, Egan...

// breakout hp prime v 1.0
//
// Egan Ford <egan@sense.net>
//
// Inspired by Tugdual's Pong alpha and Atari 2600 Breakout
//

brickout();
drawbricks();
drawballs();
drawscore();
drawtext();

local j, t, m;
local paddle_x, paddle_y, paddle_w, paddle_h, paddle_m; // paddle
local score_y, brick_h, brick_n; // bricks
local brick_colors, brixel_x, brixel_y, brick_w;
local x, y, vx, vy, ball_m, ball_w, ball_n, rel_x; // ball

The problem is, the emulator will not read anything until I delete the 1st six lines beginning //. When I delete these lines, my calculator read down until the line that ends // paddle. This line cannot be read until I erase the //paddle, then it works.

I have to go through the entire line erasing all comment, then the calculator and software works perfectly. What am I doing wrong?

I'm a math teacher. Of course I have problems.
Find all posts by this user
Quote this message in a reply
01-06-2014, 04:14 PM
Post: #2
RE: Coments in a Prime Program
I haven't had any problems, but to make sure your browser isn't changing the characters I've updated my breakout post with a zip file. See if that works.
Find all posts by this user
Quote this message in a reply
01-06-2014, 04:19 PM
Post: #3
RE: Coments in a Prime Program
May I suggest that the moderators move this thread to be placed within the Breakout thread, since this does not actually consist of a new program.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
01-18-2014, 10:55 PM
Post: #4
RE: Coments in a Prime Program
(01-06-2014 04:19 PM)Han Wrote:  May I suggest that the moderators move this thread to be placed within the Breakout thread, since this does not actually consist of a new program.


This has NOTHING to do with the BREAKOUT thread per se... I specifically stated it happens for EVERY single Prime program I download. Might as well re-post it in every Prime Software sub-topic then huh? Smile

I'm a math teacher. Of course I have problems.
Find all posts by this user
Quote this message in a reply
01-19-2014, 03:34 AM
Post: #5
RE: Coments in a Prime Program
Quote:This has NOTHING to do with the BREAKOUT thread per se
This has NOTHING to do in the Software Library !

Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
Find all posts by this user
Quote this message in a reply
01-20-2014, 06:25 AM
Post: #6
RE: Coments in a Prime Program
Touche!

I'm a math teacher. Of course I have problems.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)