Jump to content
IGNORED

intybasic: Variable in DATA statement?


CrazyBoss

Recommended Posts

Problem is cant effort that i have "screen" data, and i want to change it on the fly

but it seems like i have to find another option ;)

 

the data is not in ram so cant use poke :(

 

but if i had a way to use decle <basic var> it could work.

 

like

 

#b=$1234

 

scr:

data $0000

asm decle #b

 

but ofcause its not working like this.

Edited by CrazyBoss
Link to comment
Share on other sites

Problem is cant effort that i have "screen" data, and i want to change it on the fly

but it seems like i have to find another option ;)

 

the data is not in ram so cant use poke :(

 

You could use SCREEN for the fixed parts (it allows you to select the origin rectangle) and use POKE for the dynamic parts.

Link to comment
Share on other sites

If you want to update a single card in a SCREEN, just use PRINT:

 

PRINT AT cardnum,((256+cardval)*8 )+#fgcolor

 

cardnum is the card number (0-239) and cardval is the offset from 0 in your DEFINE statement. Or using the syntax in your example: PRINT AT 1,#br - if I'm reading things right.

 

This is probably the easiest way to turn cards into changeable elements, at least that I've found.

Edited by freeweed
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...