Jump to content

Recommended Posts

How can it be done. Ofcause this didn work :(

#br=$0200

data $0802,#br

 

Maybe dould be done with something like

#br=$0200

data $0802

asm decle Q3

 

but didn work (Q3 is the name of variable #br in the assembler)

 

Any dirty tricks I can try?

 

 

Link to comment
https://forums.atariage.com/topic/232210-intybasic-variable-in-data-statement/
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 :(

 

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

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.

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

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...