Jump to content
Sign in to follow this  
Heaven/TQA

MADS & repeat lines not single line

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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 by xxl
  • Like 1

Share this post


Link to post
Share on other sites

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 :) )

  • Like 1

Share this post


Link to post
Share on other sites

ahhh the damned rept... sorry... Used that once and forgot it... too complex MADS has become... (to say it in Memoriam of Yoda).

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...