MemeAssembly icon indicating copy to clipboard operation
MemeAssembly copied to clipboard

[Command suggestion] range comparison command

Open kammt opened this issue 4 years ago • 0 comments

See https://github.com/kammt/MemeAssembly/pull/57#issuecomment-1015805538 for reference

Quote: The main idea is to add an ability to jump with condition so you can achieve something like this: C

if(a > 5 && a < 20) {
    // some code
}
// continue

ASM

cmp     eax, 5
jle     .LYeet0
cmp     eax, 19
jg      .LYeet0
# some code
.LYeet0:
# continue

kammt avatar Jan 19 '22 09:01 kammt