Jump to content
IGNORED

Line Labels?


Luigi301

Recommended Posts

Another thread says you can use labels instead of numbers. However, when I do

 

initprg:
player0x = wormx : player0y = wormy
player1x = applex : player1y = appley
applex = 75 :appley = 75
COLUPF = 90

 

DASM errors saying "cannot process line 'initprg' and refuses to compile. What gives?

Link to comment
Share on other sites

Another thread says you can use labels instead of numbers. However, when I do

 

initprg:
 player0x = wormx : player0y = wormy
 player1x = applex : player1y = appley
 applex = 75 :appley = 75
 COLUPF = 90

 

DASM errors saying "cannot process line 'initprg' and refuses to compile. What gives?

900206[/snapback]

Have you tried using a different name for the label to see if that works?

Link to comment
Share on other sites

Another thread says you can use labels instead of numbers. However, when I do

 

initprg:
player0x = wormx : player0y = wormy
player1x = applex : player1y = appley
applex = 75 :appley = 75
COLUPF = 90

 

DASM errors saying "cannot process line 'initprg' and refuses to compile. What gives?

900206[/snapback]

Have you tried using a different name for the label to see if that works?

900283[/snapback]

 

Take the colon off the label and you should be golden.

 

eg:

 

topofloop

a = a + 1

player0x = a

if a > 5 then goto topofloop

 

outofloop

off and doing something else.

 

 

 

The forum nukes the indent, so the rule is a label needs to occupy the first character of a line, with statements indented.

 

(using - for a space)

 

label

-statement

-statement

 

anothelable

-statement

-if something then goto label

Link to comment
Share on other sites

I've mentioned the coding thing to Al...

right now the easiest thing to do is put TWO spaces in front of each indented line.

Maybe I'll make a little web app to make that easier...

900492[/snapback]

 

Cool. Hope there is a fix in the works. This is a great forum otherwise.

Link to comment
Share on other sites

Until there is a fix, you can insert a no-break space and that forces the forum to leave a space. It works with or without the code thingy.

 

initprg

 player0x = wormx : player0y = wormy

 player1x = applex : player1y = appley

 applex = 75 :appley = 75

 COLUPF = 90

 

 

initprg
 player0x = wormx : player0y = wormy
 player1x = applex : player1y = appley
 applex = 75 :appley = 75
 COLUPF = 90

Link to comment
Share on other sites

What do you mean by "no-break space"?

In HTML that's & n b s p ; but that doesnt seem to work in the code blocks...what did you do?

900830[/snapback]

There are two easy ways. You can 'type' it by holding down the Alt key and punching in the numbers 255 with the numbers on the side of your keyboard or you can use that cool little program called Character Map (if you have a Windows PC). If you run that and look between the tilde and the inverted exclamation mark, you'll see the no break space. You can copy it and paste it in any forum when you need to force a blank space. Whether you copy it from Character Map or use Alt+255, it's pretty fast and not too much of a pain.

 

You can read more about it here:

 

http://www.fileformat.info/info/unicode/char/00a0/index.htm

Edited by Random Terrain
Link to comment
Share on other sites

What do you mean by "no-break space"?

In HTML that's & n b s p ; but that doesnt seem to work in the code blocks...what did you do?

900830[/snapback]

There are two easy ways. You can 'type' it by holding down the Alt key and punching in the numbers 255 with the numbers on the side of your keyboard or you can use that cool little program called Character Map (if you have a Windows PC). If you run that and look between the tilde and the inverted exclamation mark, you'll see the no break space. You can copy it and paste it in any forum when you need to force a blank space. Whether you copy it from Character Map or use Alt+255, it's pretty fast and not too much of a pain.

 

You can read more about it here:

 

http://www.fileformat.info/info/unicode/char/00a0/index.htm

900874[/snapback]

Hmm...well, for longer cut and paste codes I'd suggest my new tool for that at http://alienbill.com/2600/basic/aabbcc.cgi

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...