Kingcom / armips

An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363 stars 77 forks source link

A .repeat directive #192

Open clbr opened 4 years ago

clbr commented 4 years ago

I'm missing the .repeat directive, as found in ca65 for example. https://www.cc65.org/doc/ca65-11.html#ss11.83

It allows to repeat a block, optionally replacing the block index in each iteration. This saves typing and simplifies code.

Kingcom commented 4 years ago

This could be a worthwhile addition, but is likely not trivial to implement. I imagine it'd be similar to macros. Probably not something I'd get around to anytime soon, but I'd be ready to discuss the to topic with anyone interested in implementing it.