hlorenzi / customasm

💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Apache License 2.0
704 stars 55 forks source link

Feature request: fill bank with custom value instead of zeros #198

Open LoreManga5 opened 7 months ago

LoreManga5 commented 7 months ago

For example:

bankdef mybank

{

addr 0x0

#size 0x6
#outp 0
#fill 05 

}

And it fills the bank with 05 value

ruledef

{ nop => 0x00 hlt => 0xff }

nop hlt

Output: 00ff05050505

hlorenzi commented 7 months ago

Yes! That was the original idea.

LoreManga5 commented 7 months ago

Yes! That was the original idea.

So it's never going to work like that? Because in my system the nop operation is not 00 so the fill function is a bit useless 😅

hlorenzi commented 7 months ago

It should work! I mean I had this idea for a while, it's just unimplemented as of yet.