CrazyBoss Posted November 26, 2014 Share Posted November 26, 2014 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? Quote Link to comment https://forums.atariage.com/topic/232210-intybasic-variable-in-data-statement/ Share on other sites More sharing options...
+nanochess Posted November 26, 2014 Share Posted November 26, 2014 I would suggest to use an array: DIM #array(2) #array(0) = $0802 #array(1) = #br Quote Link to comment https://forums.atariage.com/topic/232210-intybasic-variable-in-data-statement/#findComment-3121655 Share on other sites More sharing options...
CrazyBoss Posted November 26, 2014 Author Share Posted November 26, 2014 (edited) 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 November 26, 2014 by CrazyBoss Quote Link to comment https://forums.atariage.com/topic/232210-intybasic-variable-in-data-statement/#findComment-3121727 Share on other sites More sharing options...
+nanochess Posted November 26, 2014 Share Posted November 26, 2014 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. Quote Link to comment https://forums.atariage.com/topic/232210-intybasic-variable-in-data-statement/#findComment-3121748 Share on other sites More sharing options...
freewheel Posted November 26, 2014 Share Posted November 26, 2014 (edited) 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 November 26, 2014 by freeweed Quote Link to comment https://forums.atariage.com/topic/232210-intybasic-variable-in-data-statement/#findComment-3121807 Share on other sites More sharing options...
Recommended Posts
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.