asar
asar copied to clipboard
(Now) official repository of the SNES assembler Asar, originally created by Alcaro
I've encountered situations where I'd like to create a function but it requires certain invariants to be upheld in the arguments, or else the output would be undefined and it...
The manual (for both v1.90 and v2) states: > When a file with [the name `stdincludes.txt`] exists next to the Asar executable, Asar automatically opens it and adds every line...
!rb as2 -s org $00f606 autoclean jsl derp freecode start=$018000 derp: nop randombot999 APP — Today at 6:13 PM Errors occurred while assembling. :3: error: (Eautoclean_label_at_freespace_end): Don't autoclean a label...
``` arch spc700 norom org $0000 base $0000 foo: bra bar base $FFF0 bar: bra foo ``` This prints two `Erelative_branch_out_of_bounds` errors, for values `65518` and `-65522` respectively. The S-SMP,...
``` for !i = 1..2 endfor ``` is legal if the define `!i` already exists and contains a number, as this will expand to `for 0 = 1..2`, and `!0`...
``` asar 1.90 macro foo(...) if 0 == 1 print "no" elseif == 42 print "yes" else print "bug" endif endmacro %foo(42) ``` This patch prints `bug`, as well as...
Similar in spirit to #364, it can be useful to know for build systems which bytes were read during the application of a patch in order to "reject" the possibility...
This is kinda long term, but it would be potentially useful for me and others working on build systems if asar had an option for letting you retrieve a list...
``` %DoesNotExist( ``` ``` %DoesNotExist ``` ``` %DoesNotExist() ``` ``` %9DoesNotExist() ``` ``` macro DoesExist() endmacro %DoesExist()foo ``` ``` macro DoesExist() endmacro %DoesExist(1) ``` ``` macro DoesExist(a, ...) endmacro %DoesExist()...
``` asar 1.90 arch spc700 norom org 0 Data: db "" DataEnd: print dec(datasize(Data)) ``` This prints: ``` test.asm:10: warning: (Wdatasize_last_label): Datasize used on last detected label 'Data'. [print dec(datasize(Data))]...