Skip to content

Commit

Permalink
fixes, classic macro invoke, better .pc.asm format
Browse files Browse the repository at this point in the history
Fixes on signedX
Macro accept classic invocation ( ASM and JavaScript way)
better readability of .pc.asm generated files
  • Loading branch information
redcrab2016 authored Mar 23, 2018
1 parent 4d83431 commit a4ca21f
Show file tree
Hide file tree
Showing 45 changed files with 467,279 additions and 601,577 deletions.
Binary file modified bf.jar
Binary file not shown.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,17 @@ BF Macro Assembler is a pre-compilation language. Macro template can be consider
POP {variableName}
ENDMACRO

ASSIGN Var1, 10
ASSIGN Var2, 20
ASSIGN Var3, 30

Alternative syntax (provide parameters the same way as a Javascript function)

MACRO ASSIGN(variableName,value)
PUSH {value}
POP {variableName}
ENDMACRO

ASSIGN("Var1", 10)
ASSIGN("Var2", 20)
ASSIGN("Var3", 30)
Expand Down
365 changes: 185 additions & 180 deletions samples/BFinBF/BFinBF.bf

Large diffs are not rendered by default.

Loading

0 comments on commit a4ca21f

Please sign in to comment.