Heaven/TQA Posted September 17, 2012 Share Posted September 17, 2012 how can I do something like this in MADS: ldx collum ldy collum0 lda 53770 :100 (sta vram+#*40,x;sta vram+#*40,y) ... so it would be repeating a code block not a single line with Macro? Quote Link to comment Share on other sites More sharing options...
xxl Posted September 17, 2012 Share Posted September 17, 2012 (edited) so prepare one line :100 .byte { sta $ffff,x },<(vram+#*40),>(vram+#*40),{ sta $ffff,y },<(vram+#*40),>(vram+#*40) I do not know if it works Edited September 17, 2012 by xxl 1 Quote Link to comment Share on other sites More sharing options...
NRV Posted September 17, 2012 Share Posted September 17, 2012 how can I do something like this in MADS: ldx collum ldy collum0 lda 53770 :100 (sta vram+#*40,x;sta vram+#*40,y) ... so it would be repeating a code block not a single line with Macro? something like.. ldx collum ldy collum0 lda 53770 .rept 100 sta vram+#*40,x sta vram+#*40,y .endr ?? (never used .rept? really?? .. how can you live ) 1 Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted September 17, 2012 Author Share Posted September 17, 2012 ahhh the damned rept... sorry... Used that once and forgot it... too complex MADS has become... (to say it in Memoriam of Yoda). Quote Link to comment Share on other sites More sharing options...
popmilo Posted September 29, 2012 Share Posted September 29, 2012 something like.. .rept 100 .endr Good to know ! Really.... How could we go without it for so long... Probably because we weren't working on hard enough problems Quote Link to comment 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.